Subtract from Initial Value

Get help using Construct 2

Post » Wed Apr 10, 2013 2:38 am


I have an Instance Variable that starts at 1 for a turretCount since I give the player 1 turret to start the level. When they add a turret the turretCount increases and works fine. However, when the enemy reaches the target the turretCount decreases - which also works fine. The problem I'm having is that I want to end the level/game when the turretCount reaches zero - but that doesn't happen.
I have it setup to go to the score layout when it reaches zero but I'm not sure how to overcome that "initial value" of one.

Any ideas? Thanks in advance for your help.
Posts: 38
Reputation: 1,183

Post » Wed Apr 10, 2013 3:12 am

Provide a CAPX to help us clarify what you said.

Also, is a good practice make a text on the screen and setup it to refresh every tick with all the common and used variables, events, etc, also, I call it as "Debug".

Always when I want follow the progress of something, I update my debug text box to meet what I want, like the time played, the variable count/toggle, etc.
Image Image Image Image Image Image
Posts: 1,166
Reputation: 18,090

Return to How do I....?

Who is online

Users browsing this forum: Hans the Red and 23 guests