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.

Is there a way to???

Hey all! I was wondering if there was a way to start the timer based on the value of a variable. This obviously requires a script as there is no option for it in the control timer event. If a variable is 20, then could I start the timer at 20 seconds????

Also, the script for turning off the timer in the FAQ isn't working. I keep getting a syntax error from it on line 6 (where you set the switch). What stupid mistake am I making there to make it not want to work right???....nevermind I figured this out....  :blush:

Any help would be apprecitated! Thanks!

~xgamexfreakx
 
You should be able to use the call script:
Code:
$game_system.timer = $game_variables[ID] * Graphics.frame_rate
$game_system.timer_working = true
Obviously change ID into whatever variable ID you want.

Hope this helps.
 

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