Announcement
Announcement
| 2nd Quarter Contest Announcement posted! See the Community Announcements section. |
New threads (complete scripts) here will go into a moderation queue. You will not see your thread appear when you create it. A moderator will decide if it will be approved or denied.
![]() ![]() |
Mar 3 2008, 01:00 AM
Post
#1
|
|
![]() |
I made a script like this in XP, so I figured I'd transfer it. Just put it in the materials section.
I might release newer versions as I come to update the script, but this is sufficient for now. CODE #By: Gammastar. #Debug speeder. Boosts the frame rate when you press the F6 key. #Press F6 again to return to normal. #This is much more effective if you dash while using it. #No need to give me credit, since this is only usable in debug mode. #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 This can be used on the map and in battle (just in case you want quick battles, or forgot to turn it off on the map). |
|
|
|
Mar 8 2008, 07:35 PM
Post
#2
|
|
![]() Type: Designer |
thanks, this is really helpful when you get far in making your game.
|
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 20th May 2013 - 02:37 AM |
|
|