RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Is there a script...

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 88
Patriots all the way!!
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!!!

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
You can use common events.

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
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:

Code: [Select]
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.

**
Rep:
Level 88
Patriots all the way!!
Oh ok im going to try it out right now. Thanks.
Im to cool to have my own signature!!!

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
But you don't jump over anything. You could if you used phasing but then you could get stuck on things.

**
Rep:
Level 88
Patriots all the way!!
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!!!

*
Rep:
Level 102
2014 Biggest Narcissist Award2014 Biggest Forum Potato2014 Best Non-RM Creator2013 Best Game Creator (Non-RM)2013 Best IRC ChatterboxParticipant - GIAW 112012 Most Successful Troll2012 Funniest Member2012 Best Use Of Avatar and Signature space2012 Best IRC ChatterboxSecret Santa 2012 ParticipantProject of the Month winner for November 2009For being a noted contributor to the RMRK Wiki2010 Most Successful Troll2010 Biggest Forum Couch Potato2010 Best IRC Chatterbox
Set it to parralel process. Select a switch. Activate the switch in game. There ya' go.

**
Rep:
Level 88
Patriots all the way!!
Oh, ok thanks both of you it works now.
Im to cool to have my own signature!!!

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Most Mature Member2010 Favourite Staff Member
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.