How do I make a countdown

0 favourites
  • 6 posts
From the Asset Store
Letter Quest is a fun and engaging word puzzle game.
  • So in my game i need a countdown, from 3 to 0, and then the game begins. So i will need everything to be disabled when the countdown is going and enable everything when it hits 0.

    Thanks for any help

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I'd say the absolute easiest way would be to have the control groups disabled by default, then run an event on startup that goes something like this:

    Text > Set Text ("3")

    Wait 1 second

    Text > Set Text ("2")

    Wait 1 second

    Text > Set Text ("1")

    Wait 1 second

    Text > Destroy

    Set control groups enabled

    Not elegant by any means, but totally functional.

  • Or you could take a look at timers. If it's 3 seconds or 3 min's it will still work the same, https://www.scirra.com/manual/167/timer

    If you need more info post back after you check it out. Regardless both methods should work:)

  • Way 1 =

    Use the PAUSE plugin to set your entire game to pause.

    Then Create a label (text) in the middle of the screen , (1. use one text and set its visibility 2.create a text)

    then just use a global variable to hold the integer. then :

    On start of layout -> Create Label - Set visible TRUE

    Then just -> Every 1 Second -> subscract 1 from the global variable.

    The last thing you need is a event for refreshing the text when it gets 1 less.

    So if the global variable == 0 -> Disable pause -> make text invisible.

    Efery Tick -> Set TEXT to &globalVariable

    oh and i forgot you also need

  • I'd say the absolute easiest way would be to have the control groups disabled by default, then run an event on startup that goes something like this:

    Text > Set Text ("3")

    Wait 1 second

    Text > Set Text ("2")

    Wait 1 second

    Text > Set Text ("1")

    Wait 1 second

    Text > Destroy

    Set control groups enabled

    Not elegant by any means, but totally functional.

    hmm yeah this might be a more elegant way than i posted

  • Thanks for the quick aswers

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)