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.

Can someone edit this simple dash script?

#==============================================================================
# Game_Player Dash by necrofear
#==============================================================================
class Game_Player
alias xrxs25_update update
def update
unless moving? or $game_system.map_interpreter.running? or
@move_route_forcing or $game_temp.message_window_showing
if Input.press?(Input::C)
@move_speed = 5
else
@move_speed = 4
end
end
xrxs25_update
end
end

The only thing I'd like for it to change is that when you hold down C to dash, it dashes for X amount of steps (or i guess frames, if that's easier), and then it goes back to normal speed.

Basically I don't want someone to be able to dash infinitely.

Can someone help me out? It seems easy enough.

Also, on a side note, if you can make it so that when you use [Item ID], your speed is increased for X amount of steps/frames, that'd be great as well. If that would involve major editting of the script though, forget it. It seems simple so I figured I'd just add it on here.

Thanks in advance.
 

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