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.

Timers

Hi, I'm new. I am having trouble with the timer functions. I have managed to make the timer stop, but worse I can't make it stop or do the things I need it to when it finishes. I know that in the conditional branches there is the timer function, but I seem to have problems with the "or less" function. When I set the timers with the "and more" function. the desired result comes, but I don't want it set with "and more" so I am trying figure out how to set it with the "and less." Any suggestions?
 
Unka Josh":264v0pa0 said:
I haven't had this problem at all-- how did you structure your event?
at the beginning of the game I structured the game with a paralell process, where I started the timer for 2 minutes (I ultamately plan for 15, but I don't have the patience to wait 15 minutes to see if my event work. I know that if I make it work with 2 then I can do 15.) then I set either a self switch or a reqular swtich called timer, I then went to the next page where I activated the previous switch, there I turned on a conditional branch where when the timer reached zero then a fanfare was to sound, and the player was to recieve instructions with what to do next. Now when I set the conditional branch to zero and more, the event would set off properly, but when I set it to zero and less, the music wouldn't play and the player wouldn't get the message. That is where my problems lies. It doesn't seem to want to work for the less than.
 
A screenshot would probably make this a snap diagnosis, but is the timer actually counting down? I ask because if you have the timer being set in a parallel process event, it'll keep getting reset to the original starting amount.

Basically, the rule with timers and events is something like this:

The triggered event activates the timer.

The Parallel Process event checks the timer.

Get those wrong, and it won't work.

These therefore should not be the same event page, and you may want to consider making them separate events, just to be safe.
 

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