How do I bind timer to one layout

Get help using Construct 2

Post » Mon Mar 17, 2014 8:46 am

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
B
3
Posts: 9
Reputation: 195

Post » Mon Mar 17, 2014 8:50 am

Are all layouts connected to same even sheet?
Image Stoorn Memory Puzzle
B
9
S
3
G
1
Posts: 66
Reputation: 1,488

Post » Mon Mar 17, 2014 9:02 am

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?
B
3
Posts: 9
Reputation: 195

Post » Mon Mar 17, 2014 10:10 am

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 :)
Image Stoorn Memory Puzzle
B
9
S
3
G
1
Posts: 66
Reputation: 1,488

Post » Thu Apr 03, 2014 7:00 am

Anyone else have any idea on how to get this to work on only one layout?
B
3
Posts: 9
Reputation: 195


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, Yahoo [Bot] and 22 guests