Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Simple Dash Script

Go to common events
make the trigger parallel process
then put a conditional branch triggered by a button
then put in change speed up in movement
and in else put change speed down in movement
 

Jason

Awesome Bro

Damn you called him a N00B !!! Haha.

Yeah, I'm not saying anything bad here, but you should really think before you type, this script is SO easy to find, but why use a script when you can use a VERY simple common event ?
 
Arbiter":414o4bw1 said:
Forget events, mesosade  wanted a simple dash script so mesosade  shall have one.

Code:
class Game_Player
  alias arbitergoes_spooky :update
  
  def update
    arbitergoes_spooky
    if Input.press?(Input::C) 
      @move_speed = 4
    else
      @move_speed = 3
    end
   arbitergoes_spooky
 end
end

Just put it in a new script slot above main.

Thank you =]
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top