So in my game i have a switch that is triggered when an event touch the player, who loses a life and is knocked back.
It works (sort of) well but I have a problem with jumping enemies.
If a slime or whatever jump and it lands directly on the tile where the player actor is the switch is not triggered (switch is called in a event touch event). How can I solve this?
I was thinking about creating a loop that checks continuously on player coordinates and compare it with the coordinates of the enemy when it lands but I am not sure how to implement it. Maybe putting the loop that store the player coordinates as a separate parallel event and compare it in the enemy event after each jump. What do you think? It seems a bit convoluted and I am still quite new to rpgmaker so I want to avoid writing spaghetti code. Any tips/ ideas?
It works (sort of) well but I have a problem with jumping enemies.
If a slime or whatever jump and it lands directly on the tile where the player actor is the switch is not triggered (switch is called in a event touch event). How can I solve this?
I was thinking about creating a loop that checks continuously on player coordinates and compare it with the coordinates of the enemy when it lands but I am not sure how to implement it. Maybe putting the loop that store the player coordinates as a separate parallel event and compare it in the enemy event after each jump. What do you think? It seems a bit convoluted and I am still quite new to rpgmaker so I want to avoid writing spaghetti code. Any tips/ ideas?