04-11-2005, 01:00 PM
Dash
by Necrofear
Apr 11 2005
For all the beginners out there who want a normal dash script here it is
You can add this as an independent script anywhere under Game_Player
or
add this to the end of Game_Player before the last end
by Necrofear
Apr 11 2005
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
For all the beginners out there who want a normal dash script here it is
You can add this as an independent script anywhere under Game_Player
Code:
#==============================================================================
# Game_Player Dash
#==============================================================================
class Game_Player
alias dash_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) #The key you push to initiate
@move_speed = 5 #Sets running speed
else
@move_speed = 4 #Sets walking speed
end
end
dash_update
end
end
or
add this to the end of Game_Player before the last end
Code:
alias dash_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) #The key you push to initiate
@move_speed = 5 #Sets running speed
else
@move_speed = 4 #Sets walking speed
end
end
dash_update
end