Right now I am trying to figure how to make it so an event can only work when the front of it is touched by the player.
How do I make this happen?
How do I make this happen?
if the event moves first, then the player is always in front of it if the trigger happens.
You should not be...if the player is not facing the event, then by logical definition the event moved into the player, which means the player must be touching its front.
I don't understand why you keep posting here to ask other people to help you then give weird refusals to provide the information they need to help you like you asked. Do you think someone is going to steal ideas from you in freaking RPG Maker?
You can get both the event X, Y and the player X, Y make sure that player facing matches up with relative location (if Py-Ey=1, the player is below the event, if player is also facing up, activate the event). Using labels to jump to a single event activation would make it less cluttered, but it'd still be a slight pain to repeatedly do.
Does the direction the event is facing matter? If it does, that's a factor.
First, in general it's useful to have a "find player location event" in your common events:
This is not a good attitude to have when you're asking for help. If you knew what needed to be done, and all the information that was required for that, then obviously you'd already have done it and wouldn't need to be asking. It seems silly to be saying "I don't know the answer, but you don't need the things you say you need." It's like saying you don't know how to make a pizza, but the chef is wrong when he asks you to get tomatoes.
Then use the event I posted, but instead of checking the player facing, check the event's facing. Also, build direction fixes into the event's move route so it doesn't turn toward the player on interaction.
No, the common event (the first picture) should stay as is since it's checking player location not player orientation, and then be referenced at the start. The parts you need to change are the "If player is facing" to If This Event is facing.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-it-so-an-event-only-runs-when-player-touches-it-from-the-front.135832/