Posts: 13
Threads: 4
Joined: Feb 2010
How do you go about checking what direction the player is currently facing?
Something like
If facing up
do item1
else if facing down
do item2
etc. etc.
I know theres the conditional statement in events, buti'm looking for a script verison of it
Thanks
Posts: 77
Threads: 12
Joined: Sep 2009
hello
this is in conditional branch, page 3
Posts: 1,019
Threads: 76
Joined: Jan 2010
$game_player.direction
This will return a number:
2 - down
4 - left
6 - right
8 - up
Posts: 13
Threads: 4
Joined: Feb 2010
Thanks Valdred, just what i needed.
mageone - as i said in the first post, i know about conditional branch in events, but i was after a script version
Posts: 77
Threads: 12
Joined: Sep 2009
hello Desbrina,
my bad, i ve read too fast and skip that, sorry >.<
anyway that's great Valdred has given the answer to you !! :)
Posts: 1,019
Threads: 76
Joined: Jan 2010
If you are ever stuck in scripting or eventing. Just play a tune at this flute.
*hands over magical flute*
*riding into the sunset*