Countdown timer

gamedivisiongamedivision Member Posts: 807
edited November -1 in Working with GS (Mac)
I've just followed tshirtbooth timer tut but I need a countdown timer I've done a search but couldn't find anything anyone seen a demo or tut or know how to make the timer

Thanks

Comments

  • micksolomicksolo Member Posts: 264
    create a global attribute Game.Countdown and set it 3 (or whatever number you want to countdown from). Then make a rule, when (whatever thing sets it off, start game etc), add a timer and set it to "Every 1 second" -> Change attribute-> Game.Countdown = Game.Countdown-1.

    So every 1 second, Game Countdown will reduce by 1.

    Then when it gets to 0 make a new rule...When Game.Countdown = 0; (do whatever it is you want to do.)

    If you want to display that number on screen simply make a new actor called Game.Countdown, drag a "Display Text" behavious into the actor and select Game.Countdown from the drop down list.
Sign In or Register to comment.