How do I toggle and start timer?

Get help using Construct 2

Post » Tue Nov 03, 2015 12:33 pm

Hi,
I tried combining the toggle tutorial with a button that sets variable-countdown - 9 similar to the Timer tutorial.

However, each time I toggle & set variable -countdown to 9, the variable will remain at 9 but not starting the timer.
Timer
https://www.scirra.com/tutorials/450/timers?page=2

Toggle
https://www.scirra.com/tutorials/158/ve ... two-states

Any suggestions on where my logic is not right?
B
10
S
3
G
1
Posts: 19
Reputation: 761

Post » Tue Nov 03, 2015 12:49 pm

If you would provide a link to your project instead of the tutorials we might see where you went wrong..
Right now it's impossible to see your logic..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Nov 03, 2015 2:20 pm

Sorry. Here's the screenshot.
http://postimg.org/image/ta0kp71tz/

It works in this simple example above.

However, in my capx, I have 2 additional global variables -
upon touched Pause,
Playing - 1
Lives > 0

Not sure if thats the reason it doesnt work. I have tried disabling the 2 variables above but somehow its not working.
B
10
S
3
G
1
Posts: 19
Reputation: 761

Post » Tue Nov 03, 2015 2:34 pm

I don't get it..
You want us to help with something that doesn't work, so you show us something that does?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 10 guests