I am relatively new to Construct 2, so bare with me if this is a simple problem I am trying to solve here.
I am essentially creating a game where you hold your finger down on the screen (on a particular object which is a button) and a timer counts down from 3 before the game starts. If you lift your finger before the timer is finished, the timer resets and the game doesn't start.
For reference I am using the wonderful TimeManager plugin for Construct 2 for the countdown functionality.
Pseudo-code for reference:
While finger is being held down and touching object {
Timer counts down from 3 seconds
}
If (finger is lifted off of the object before the timer reaches zero) {
Stop timer counting and reset to 3 seconds
}
What is the best way I can achieve such a thing? Are while loops able to support multiple events? The syntax isn't all what I am used too compared to other languages like Javascript or PHP.