Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Set variable to false.
- $using = false
- class Scene_Map
- #Alias the update method in Scene_Map.
- alias gammastar_speedupdate update
- #By aliasing, I add to the method instead of actually defining it.
- def update
- #Refer to alias (can't work without this)
- gammastar_speedupdate
- #Check to see if in debug and if F6 is pressed.
- if $TEST and Input.trigger?(Input::F6)
- #Check to see if you are using the speeder.
- if $using == false
- Graphics.frame_rate = 120
- Sound.play_decision
- $using = true
- else
- Graphics.frame_rate = 60
- Sound.play_cancel
- $using = false
- end
- end
- end
- end
- #Essentially the same as above.
- class Scene_Battle
- alias gammastar_speedupdate_b update
- def update
- gammastar_speedupdate_b
- if $TEST and Input.trigger?(Input::F6)
- if $using == false
- Graphics.frame_rate = 120
- Sound.play_decision
- $using = true
- else
- Graphics.frame_rate = 60
- Sound.play_cancel
- $using = false
- end
- end
- end
- end
RAW Paste Data