Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
HBGames
ok first of all set a common event where ever you like
then set
@>Conditional Branch: The A button is being pressed # it can be any button.
then insert under it
@>Conditional Branch: Player is facing Down
@>Set Move Route: Player (Ignore If Can't Move)
:$> Jump: -0,+2
@>
then insert under Else
@>Conditional Branch: Player is facing Up
@>Set Move Route: Player (Ignore If Can't Move)
:$> Jump: +0.-2
@>
next insert under Else
@>Conditional Branch: Player is facing Left
@>Set Move Route: Player (Ignore If Can't Move)
:$> Jump: -2.+0
@>
You know what to do next insert under Else
@>Conditional Branch: Player is facing Right
@>Set Move Route: Player (Ignore If Can't Move)
:$> Jump: +2.+0
@>
then set at the end
@Wait For Move's Completion
then you'll end up having an event like this
@>Conditional Branch: The A button is being pressed
@>Conditional Branch: Player is facing Down
@>Set Move Route: Player (Ignore If Can't Move)
: :$> Jump: -0,+2
@>
:Else
@>Conditional Branch: Player is facing Up
@>Set Move Route: Player (Ignore If Can't Move)
: :$> Jump: +0.-2
@>
:Else
@>Conditional Branch: Player is facing Left
@>Set Move Route: Player (Ignore If Can't Move)
: :$> Jump: -2.+0
@>
:Else
@>Conditional Branch: Player is facing Right
@>Set Move Route: Player (Ignore If Can't Move)
: :$> Jump: +2.+0
@>
: Branch End
@>
: Branch End
@>
: Branch End
@>
: Else
@>
: Branch End
@>
@Wait For Move's Completion
@>
then name it what ever you want and set the Trigger: Parallel
and select a condition switch
then set an auto event on the map to switch to the condition switch you've selected then when you play it just press the Z button or what ever you selected and the actor will jump.
Edit: Ok like everyone was saying use the command "erase event" or a self switch to stop the process of the map event