How do I stop infinite timer score ?

Just started using Construct 2? Post your questions here

Post » Fri Mar 11, 2016 11:42 pm

Hi,

I have created a score based on a timer. Every 0.1 sec I add a 1 to Score.

The problem is, How do I stop this from counting when the player dies in a collision?

Thanks!
B
8
S
2
Posts: 25
Reputation: 650

Post » Sat Mar 12, 2016 12:34 am

In the conditions for your timer use a variable check.. say PlayerDead=0, then when player dies change this var to PlayerDead=1. The timer will then not run since PlayerDead no longer equals 0.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
71
S
19
G
8
Posts: 640
Reputation: 9,701

Post » Sat Mar 12, 2016 9:26 am

chrisinfinger wrote:In the conditions for your timer use a variable check.. say PlayerDead=0, then when player dies change this var to PlayerDead=1. The timer will then not run since PlayerDead no longer equals 0.



Works perfectly my friend. Thank you so much for help and kindness.
B
8
S
2
Posts: 25
Reputation: 650


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests