Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [RM2K3]4-Directional Jumping Tutorial, Simple, but can be very useful.
Trickster
post Jan 23 2010, 07:17 PM
Post #1


How was I supposed to know combustion kills people!?
Group Icon

Group: Revolutionary
Posts: 1,030
Type: Writer
RM Skill: Advanced




Well I'll try to keep this short and sweet...

You star off by making a Common Event, and name it 'Jump', and set its Trigger to 'Parallel Process'.
Now in the Event Box, add a Key Input Processing (3rd Tab) and set 'Store In Variable' and name the Variable Jump.
Untick all the boxes, except for the button you want to be the jump button. (I recommend using +)

Under that, put 'Conditional Branch' ('Fork Condition' on Rm2k) and go to the 2nd tab, and choose 'Sprite', then choose 'Hero'
and then hoose 'Is Facing Up'. In the handler, put 'Move Event', choose Hero, and put in 'Begin Jump, Move Up, Move up, End Jump'.

In the else section, put 'Conditional Branch', once again choose 'Sprite', 'Hero' and 'Facing Right'.
In the handler pu 'Move Event', 'Hero', 'Begin Jump, Move Move Right, Move right, End Jump'.

In the 'Else' section, you just repeat but with 'Sprite, Hero, Facing Down' and with 'Begin Jump, Move Down, Move Down, End Jump',
andthen in the else section, you once again do the same thing, but with 'Hero Facing Left' and with 'Begin Jump, Move Left, Move Left, End Jump'.

So this is a nice, simple way of implementing 4-Directional Jumping into an RPG. I apologise if I didn't explain things well, as this is my first Tutorial, but I hope it helps! smile.gif
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
jimmyjonas
post Apr 2 2010, 07:40 AM
Post #2


Level 2
Group Icon

Group: Member
Posts: 19
Type: Scripter
RM Skill: Intermediate




Thats good but it can be done more simple: (Just copying out what it says in my parallel process event)

<>Key Input Proc: [0001]:jump]
<>Branch if Var: [0001:jump] is 7
<>Move Event: Hero, Begin Jump, Move Forward, Move Forward, End Jump
<>
: End
<>

So when shift is pushed the hero jumps in any direction your facing smile.gif
Go to the top of the page
 
+Quote Post
   

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 10:48 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker