#==============================================================================
# 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
# 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.