Event stops moving when player is facing at it

I need help, im making a game and there's one room where theres an statue that will move towards you when you're not looking at it from any angle, but im just kind of a newbie and i need help to make it work, since now i just made it either unplayable or that the statue will never move. How can i fix this issue?
show us screenshots of your event code (the one that you have so far).

we can't tell you what you did wrong without seeing what you did.

depending on what type of angle you want there are different ways using either coordinates or facing to decide on the move.
show us screenshots of your event code (the one that you have so far).

we can't tell you what you did wrong without seeing what you did.

depending on what type of angle you want there are different ways using either coordinates or facing to decide on the move.
The code i have yet so far isn't even one that would pretty much do what i want...
1730657880569.png


its a little too... unfinished. It just works if the event is behind the player
First, please never cut away the event properties. They are often the most important parts of the event - you often can't understand what an event does without seeing its trigger, conditions or page numbers.

That said, you're missing the part of the coordinates.
for example facing right is only the correct direction if the x coordinate of the event is higher than the x coordinate of the player.

There might be a few more problems depending on other info you didn't give, so please post a full screenshot of the event as well, this time including not only the properties but also how you handle when the event reaches the player.
First, please never cut away the event properties. They are often the most important parts of the event - you often can't understand what an event does without seeing its trigger, conditions or page numbers.

That said, you're missing the part of the coordinates.
for example facing right is only the correct direction if the x coordinate of the event is higher than the x coordinate of the player.

There might be a few more problems depending on other info you didn't give, so please post a full screenshot of the event as well, this time including not only the properties but also how you handle when the event reaches the player.
Honestly i don't have any system that tracks the player's coordinates. Maybe thats the issue im having, that was all my code
control variable : game data (the option that defaults to map id) is the way to get the x and y coordinates for both player and events.
you'll need four variables and some mathematics (more control variable commands) together with conditional branches to create those options.

please try and show us how far you got in that try for bughunting here.

Original thread: https://forums.rpgmakerweb.com/threads/event-stops-moving-when-player-is-facing-at-it.173007/