The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: NightWingCorrupt on December 21, 2008, 09:14:57 PM

Title: Jumping [Tut.]
Post by: NightWingCorrupt on December 21, 2008, 09:14:57 PM
First make a common event Trigger parallel switch something like jump.
Make a new conditional branch if button L is being pressed or whatever you like without else handler.now make 4 more conditional branches without else handlers have them be
button left is being pressed,right,up,down
inside left would be move player jump -2,+0(first is x coordinate and 2nd is y coordinate)
right would be +2,+0
Up would be +0,-2
Down would be +0,+2
It would look like this:
----------

@>Conditional Branch: The L button is being pressed
  @>Conditional Branch: The Down button is being pressed
    @ Set move route:Player
     :                      :$jump: +0,+2
    @>
  : Branch End
  @>Conditional Branch: The Up button is being pressed
    @ Set move route:Player
     :                      :$jump: +0,-2
    @>
  : Branch End
  @>Conditional Branch: The Left button is being pressed
    @ Set move route:Player
     :                      :$jump: -2,+0
    @>
  : Branch End
  @>Conditional Branch: The Right button is being pressed
    @ Set move route:Player
     :                      :$jump: +2,+0
    @>
  : Branch End
@>
: Branch End
@>
----------

(L defaults to Q in game)