How do I use sub events to trigger touch properly?

Get help using Construct 2

Post » Mon May 16, 2016 8:05 pm

I'm trying to create a very basic action clock which counts down when buttons are touched. I'm not understanding how the events are running correctly.

It seems as if both sub-events are being triggered whenever I tap my 'Play' button. I think I'm missing something about how sub-events are supposed to work, but it still seems to be triggering 'On start of touch' twice and forcing the button not to do anything. If I disable the 'is pause playing' it starts fine. What's going on here? I just want the button to toggle states.

Image

Here's my Capx.
B
10
S
5
Posts: 28
Reputation: 1,508

Post » Mon May 16, 2016 9:37 pm

Make event 5 Else with Is "Pause" playing. Right now event 4 runs, sets the animation to Pause, then event 5 checks if it is Pause, which it is, and sets it back to Play. You need the else so event 5 is not checked immediately.
ImageImageImage
B
71
S
21
G
231
Posts: 3,688
Reputation: 129,352

Post » Sat May 21, 2016 10:24 pm

Interesting, I did not realize the effects of event 4 resolved before event 5. Thank you for clearing this up, it works for me now!
B
10
S
5
Posts: 28
Reputation: 1,508


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 12 guests