Written by: The sewershark
Ok, here it goes, I will teach you guys how to make your chara jump! Mostly of the experienced RPGMakers will say "Damn I can do that with no tutorial" so this is basicaly for the newbies! I gonna post all the code that I made in my RM2K, so basicalyyou guys must copy it to your game!
First of all, I gonna use passwords, so you must sacrifice one of your keyboard keys! I gonna use the accept button (for most of you guys, the "Enter" button). I made a switch to detect if the chara in in or out of a town! (he can't jump in towns, or else, he can't speak with NPCs) Or you can create a switch item, that turns it on and of at any time! Make an common event, set as parallel process with Apearance conditiona switch like XXXX:jump! (if you wish, you may place a simple parralel process in every jumping map, that way you don't need the switch and use an common event)
Now the code!
Enter Password: [xxxx:jump] //use the descision button FORK Optn: Varbl[xxxx:jump]-5 FORK Optn:Hero -Up Face Direct Move Event...: Hero ,Start Jump, Up, Up, End Jump :END Case . . //make more 3 forks for facing down, left, right . Variable Ch:[xxxx:jump]Set,0 :END Case
(don't forget, // are comments, not codes)
If you guys want to place NPCs in the map, they must stand stilland you got to place several events around'em in order toturn of the jump and let you use the enter key (see below)
*
*o*
*oXo*
*o*
*
X- is the NPC, place the textk in it!
o- events that tunf off the jumping switch
*- events that tunr on the jumping switch