Main Menu
  • Welcome to The RPG Maker Resource Kit.

Is there a script...

Started by Valcos, February 06, 2007, 04:31:49 AM

0 Members and 1 Guest are viewing this topic.

Valcos

I was wonder is there a script that lets you jump when you press a button? If there is can someone give me a link ;D Or can someone make one for me if possible Im still noob so i dont know how to script.
Im to cool to have my own signature!!!

Irock


modern algebra

You don't need a script, just a common event. Set it as a paralell process and call it with some switch at the beginning of the game. Then put in the common event something to this effect:


Conditional Branch: Button Y is being pressed [Comment: Y is S by default and can be set in F2 of Test Play]
  Conditional Branch: Player is facing down
     Set Move Route: Player (Ignore if can't move)
         Jump: +0, +1
  Else
       Conditional Branch: Player is facing up
          Set Move Route: Player (Ignore if can't move)
            Jump: +0, -1
       Else
          Conditional Branch: Player is facing left
             Set Move Route: Player (Ignore if can't move)
                Jump: -1, +0
          Else
             Set Move Route: Player (Ignore if can't move)
                Jump: +1, +0                

You can edit distance, just post if this doesn't work.

Valcos

Oh ok im going to try it out right now. Thanks.
Im to cool to have my own signature!!!

Irock

But you don't jump over anything. You could if you used phasing but then you could get stuck on things.

Valcos

Uhh im did all of those events in the common event thing and it didnt work  ??? ? Is there something else i should do?
Im to cool to have my own signature!!!

Irock

Set it to parralel process. Select a switch. Activate the switch in game. There ya' go.

Valcos

Oh, ok thanks both of you it works now.
Im to cool to have my own signature!!!

modern algebra

No problem. You might want to add in a Wait command at the end of it so that your guy doesn't accidentally jump twice. If you want to be able to jump over things or jump in place you can edit the distances. If you do want to be able to jump over things, be sure to put in conditions so he can't jump through trees and other similar objects.