Game timer

Get help using Construct 2

Post » Fri Apr 05, 2013 8:31 pm

I think this must be very easy and I'm just overlooking the answer. I'd like to set the game to begin when the space bar is pressed and I would ideally like the game time to be reset at that point so that events scheduled to begin after so many seconds are timed according to when the space bar was pressed, not when the whole game started. Do I need to set my own timer for this, and if so then what is the easiest way to do so?

Many thanks.
B
5
S
1
Posts: 52
Reputation: 640

Post » Fri Apr 05, 2013 11:07 pm

Yeah make your own timer. Have a timer variable and add (or subtract) dt every tick.
https://www.scirra.com/tutorials/450/timers
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Mon Apr 08, 2013 10:57 pm

Thank you!
B
5
S
1
Posts: 52
Reputation: 640


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests