RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Jumping [Tut.]

Started by NightWingCorrupt, December 21, 2008, 09:14:57 PM

0 Members and 1 Guest are viewing this topic.

NightWingCorrupt

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)
LOLZERSMATICITICION