Check player facing direction
#1
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
Reply }
#2
hello

this is in conditional branch, page 3

[Image: facing.png]
Reply }
#3
$game_player.direction

This will return a number:

2 - down

4 - left

6 - right

8 - up
Reply }
#4
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
Reply }
#5
hello Desbrina,
my bad, i ve read too fast and skip that, sorry >.<

anyway that's great Valdred has given the answer to you !! :)
Reply }
#6
If you are ever stuck in scripting or eventing. Just play a tune at this flute.

*hands over magical flute*



*riding into the sunset*
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Help iwth script (RGSS Player crash) Whisper 3 8,535 06-17-2017, 05:03 PM
Last Post: Whisper
   how to check if a method has been aliased? Charlie Fleed 6 9,222 01-21-2010, 06:26 PM
Last Post: DerVVulfman
   How to check if the value of a number is an even or odd number? PK8 5 7,599 01-04-2010, 10:45 PM
Last Post: PK8
   How to check if actor has certain stat(s) with RGSS? Twin Matrix 4 9,770 01-04-2009, 05:35 PM
Last Post: Twin Matrix



Users browsing this thread: 2 Guest(s)