iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!
 
Reply to this topicStart new topic
> [Live] Debug Speeder, [DEV script][Posted] Speeds up test mode.
Gammastar
post Mar 3 2008, 01:00 AM
Post #1



Group Icon






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).
Go to the top of the page
 
+Quote Post
   
Bigtatsu
post Mar 8 2008, 07:35 PM
Post #2



Group Icon


Type: Designer




thanks, this is really helpful when you get far in making your game.
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th September 2014 - 05:03 AM

RPGMakerVX.net is an Privacy Policy, Legal.