Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Test games at turbo speed

This is something really simple but very helpful. If you want to make the tediously repetitive testing of your game go faster, you can speed up the entire game with the script call:

Graphics.frame_rate=160
Edit correction: As Zeriab noted, the max frame rate the game will run at is 120.

Frame rate at normal speed should be 40, so that's supposed to be 3 times faster (it likely won't achieve that exactly due to pc constraints, but will still make things quite a lot faster).

So to make it even more convenient, you could make a common event like this:

turbormxp.png


This will make it so that when Switch 1 is on, you can turn on the speedy mode by pressing 'W', and switch it off by pressing 'Q' for the parts that you need to tread carefully. Or you can use whichever other input keys you prefer, of course.

Hope that helps!
 

Zeriab

Sponsor

Good idea ^_^
Note that while you can set the framerate to any given number it is actually constrained to 20-120 FPS.
This means that the framerate is set to 120 FPS rather than 160 as you would expect.

*hugs*
 
Good idea indeed... pretty simple, but I never really thought of it, and it doesn't look like anyone else did ^^

For the other fellas who prefer a scripted approach:
Code:
Graphics.frame_rate = Input.pressed?(Input::L) ? 160 : 40 # 40fps would be XP's default, replace with 60 for VX
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top