- Joined
- Dec 22, 2015
- Messages
- 2
- Reaction score
- 0
- Primarily Uses
Hi everyone,
i am trying to conditional branch when player facing diagonal movement in an event.
The idea behind this is if player is facing UPPER_R then do an action
i have try a lot of thing more than the following but without success :
if: Script $gamePlayer.Input.dir8 == 9
If :Script Game_Character.ROUTE_MOVE_UPPER_R
If: Script this.moveDiagonally(6, 8);
I have a little experience at javascript. I am turning around on that now for a few day and i am running out of idea.. any tips would be appreciated.
Edit : I have found a solution see image attachement.

i am trying to conditional branch when player facing diagonal movement in an event.
The idea behind this is if player is facing UPPER_R then do an action
i have try a lot of thing more than the following but without success :
if: Script $gamePlayer.Input.dir8 == 9
If :Script Game_Character.ROUTE_MOVE_UPPER_R
If: Script this.moveDiagonally(6, 8);
I have a little experience at javascript. I am turning around on that now for a few day and i am running out of idea.. any tips would be appreciated.
Edit : I have found a solution see image attachement.

Last edited by a moderator:

