Touching a monster sends player to a certain position?

Hello,
I'm working on a simple game (I'm very much a beginner) and I've encountered a problem. I have a player character (penguin) that swims down to the bottom of the ocean, which is swarming with enemy characters (killer whales) - the enemies are moving left to right.

The problem is, I want the penguin to be transfered back to the starting position near the water surface if it touches the killer whale - and I'm able to do that (set the "killer whale" event to be activated by player touch and to transfer player to a certain position), but the event only activates when the penguin swims through the middle of the killer whale. I want this to be activated whenever it touches the character graphic.

I'd appreciate any advice 🙂


1609587572285.png
a
you'll need a script for large event collisions, but unfortunately the one I know of only work for stationary large events.
you'll need a script for large event collisions, but unfortunately the one I know of only work for stationary large events.
Thanks a lot! I will go look for one on the internet.
The alternative solution would be using a parallel event and track the player position based on other events. Then if the variable value meets a certain value, trigger a transfer player command using a conditional branch.

This is not exactly a good practice in a larger game with the complex events going on the map. But in the context of something you're making, it should be feasible enough.

Currently, I'm unable to give an example event. Maybe someone could provide an example.
I'm not really sure what you mean by "tracking player position", I haven't heard of that before. If you (or anyone) did think of some explanation, I'd be glad, but thanks anyway 🙂
The alternative solution would be using a parallel event and track the player position based on other events. Then if the variable value meets a certain value, trigger a transfer player command using a conditional branch.

This is not exactly a good practice in a larger game with the complex events going on the map. But in the context of something you're making, it should be feasible enough.

Currently, I'm unable to give an example event. Maybe someone could provide an example.

I'm not really sure what you mean by "tracking player position", I haven't heard of that before. If you (or anyone) did think of some explanation, I'd be glad, but thanks anyway 🙂
"tracking player position" means a lot of control variable commands and mathematics.

basically you use four different variables to get both the player XY position and the event XY position from the game data section, and then compare the values.
if the difference is lower than the width and height of the event, then the player is in contact.

Original thread: https://forums.rpgmakerweb.com/threads/touching-a-monster-sends-player-to-a-certain-position.131724/