I have a statue Event that I want to move forward only when it is facing that direction.
Is there a Conditional Branch script that can be checked to check the current graphic of the Event?
Thanks!
Conditional Branch - Certain Event Graphic
● ARCHIVED · READ-ONLY
-
-
please describe what you want to do, your description doesn't make any sense.
Events don't turn unless you command them, they face the player, or they are set to random.
Moving forward when they're facing the player would be blocked by the player, and could be simulated by event touch trigger.
If you command them to turn in one direction, then you know what direction they have and don't need to test that conditionally.
If you place them on random movement, you don't want them to move into one direction only...
So please describe in more detail what the statue is intended to do, then we can tell you how to achieve that effect. -
You Action Button the Statue. I want to check if the statue is facing the same direction as the player. If so, I want it to move that direction one space.
The point is that there is another event that changes the direction of the statue, so it will not always be facing the same direction. -
In that case, have the other event (that changes the direction) store that direction in a variable (for example 1= north, 2=east,...) and have the statue event check that value.You Action Button the Statue. I want to check if the statue is facing the same direction as the player. If so, I want it to move that direction one space.
The point is that there is another event that changes the direction of the statue, so it will not always be facing the same direction.
And don't forget to set direction fix, or the statue will turn toward the player... -
Alright, I'll try it out. Thanks!
-
Does the Statue change to another Event Page when it 'turns around?' Just curious.
-
No, otherwise I would have just separated the command based on the Event Page. I was thinking of it, but the variable method seems less cluttering.
-
Just checking. Since you use another event to change the Statue's direction, the Statue's event contents would be focused on how it's facing, how the player is facing when it collides with the event, and whether or not it moves. (At least I think, if I understand what you're trying to do correctly.)
-
Yeah, that was my backup plan if this Variable thing doesn't work, but it looks like it is going to just fine.
-
Make sure in your other event that changes the direction of the statue, that you turn off direction fix, then change direction, then turn direction fix back on. :)
-
Yep, got it!
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.