How do I make a global variable add 1/s and stop?

Get help using Construct 2

Post » Wed Sep 02, 2015 5:28 am

So basically I am looking to make a global variable add 1/s and stop when an object is clicked?
B
8
S
1
Posts: 14
Reputation: 499

Post » Wed Sep 02, 2015 5:52 am

You can do that by...using another global variable haha! But that is probably the easiest way. Create a variable called OnClicked. Set your other global to add 1 only if OnClicked = 0. Than when the player clicks on an object, set OnClicked = 1, that will stop your original variable from adding anymore.
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Wed Sep 02, 2015 8:16 am

I think maybe you might just want to use the "Object 》On Clicked 》System 》 Wait 1.0" and then the event
Image
B
75
S
23
G
3
Posts: 673
Reputation: 9,283

Post » Thu Sep 03, 2015 11:43 pm

Thank you rekjl it worked perfectly for my game!
B
8
S
1
Posts: 14
Reputation: 499


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests