Check Event Direction(facing) in Conditional Branch
I never could figure out how to check where the event is facing.
Im planning on having an enemy event to have conditional branches, depending on where the player is facing there will be a check to see where the event is facing too. To see the outcome.
In game, the player faces the event and the event was looking up, the event would get hit, but if the event was facing the player too it would result in an automated evented battle.
I found something online for a different request
($game_map.events[1].y - $game_player.y).abs == 0 && ($game_map.events[1].x - $game_player.x) == -1 && $game_player.direction == 2"
but I dont know how to implement it for me. I know the directions are 4, 8, 6 and 2. but thats all i know.
Thanks in advanced!!!
Check Event Direction(facing) in Conditional Branch
● ARCHIVED · READ-ONLY
-
-
If that was for a different request, then it's probably not going to solve your problem. That bit of code simply tells you if the event is on the tile to the left of the player and the player is facing up. I'm sure you don't really care WHERE the player and event are standing in relation to each other. So you shouldn't even attempt to use that one.
Is your event triggered by action button? If it is, by the time your conditional branch even got to check, the event would be facing the player. The very first thing it does, before processing ANY command, is to make the event turn towards the player. I did write a little script to stop this from happening for some events, but I don't have time to search for it now. -
Wrong topic. But this put me in a path to fix a problem in MV.