(my first post here!)
Hi, is it possible to make an event turn towards the same direction as the player's, no matter where the player is?
Say, if the player looks north, then the event would look north too, etc.
Making the event turn away from the player doesn't work, as I want it to work when the player and the event overlap on the same tile.
The script would probably look something like this:
$game_map.events[event_id].set_direction($game_player.direction)but I wanna know if there's a way to do it without using a script. Thanks in advance!
Make an event turn to the same direction as the player's?
● ARCHIVED · READ-ONLY
-
-
you can use a parallel process event that checks the player direction and turns the event accordingly.
If you do this, I suggest to add a wait(10) or so after the change direction, because without wait the event would be processed 60 times a second and cause a lot of lag (with wait 10 only 5-6 times per second, that should be enough to work without visible delay)
Use conditional branch for player facing to decide in which direction to turn in that case. -
Ah, a conditional branch would work, yeah. Thanks a lot!
-
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.