How do I bind timer to one layout

  • I have made a timer for a quiz game that I'm making for an assignment.

    The timer works perfectly but it works for all layouts, how do you bind a timer to one layout?

    My timer looks like this :

    Added Global Variable : Countdown = 5

    System : Every 1.0 seconds > System : substract 1 from Countdown

    System : Countdown = 0 > Go to layout

  • Are all layouts connected to same even sheet?

  • Yes, I didn't think of that, so I assume I need to add another event sheet and put my timer on that or something?

  • Well I think it depends on your Events, you can still keep it all to one event sheet but put the timer event in a Group, and Set the group active whenever you want the timer to start, for example group called "Countdown".

    Example:

    On Condition Met --- System --> Set Group "Countdown" Active

    Else ---> Set Group " Countdown" Inactive

    Ofcorse you have to add that under another event like compare variable or so.

    -------------------------------------------------

    I am sure there are other ways but this what I can think of at the moment

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anyone else have any idea on how to get this to work on only one layout?

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