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.
Here's my Capx.
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.
Develop games in your browser. Powerful, performant & highly capable.
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!