RPG Maker Forums

@ title, how I can check for this?

Being more specific, checking if the player is facing left while sharing the same y position value with the event, but the event's x position is less than the player's (more personally preferred by 1)

checking if the player is facing right while sharing the same y position value with the event, but the event's x position is more than the player's (more personally preferred by 1)

checking if the player is facing up while sharing the same x position value with the event, but the event's y position is more than the player's (more personally preferred by 1)

checking if the player is facing down while sharing the same x position value with the event, but the event's y position is less than the player's (more personally preferred by 1)

These are to be used in evented conditional branches. I think I may know how to code the X/Y check, but I don't know how to exactly do the directional check. (2/4/6/8) However the issue may be that this would have to work for various different event IDs

Or maybe this can be done from the event's perspective?

Edit: Nevermind I found out how to do it.  This would be the first one of the four.

Code:
($game_map.events[18].y - $game_player.y).abs == 0 && ($game_map.events[18].x - $game_player.x) == -1 && $game_player.direction == 4

Latest Threads

Latest Posts

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,047
Messages
1,018,540
Members
137,834
Latest member
EverNoir
Top