We can actually do this entirely without the use of scripting, but if you think scripting would be easier.. than you could just do that instead =]
Anyways.. What you need:
- two events
- two switches called "start" and "reset"
- one variable called "count"
How to set it up:
step one - know where to place your two events:
step two - set up the first page of the interactive event with the following settings:
step three - set up the second page of the interactive event:
step four - set up the off-screen event with the following settings (this will activate the cycle on the interactive event):
Once you have everything set up properly, the event should take two fast clicks in order to push the block.. if you fail to click within the specified time limit, the event will reset the counter and go back the "Start". As for the timer on top.. with some modifications to the script you could remove that from the game. You can also change the counter if you want to 3 or 4, or even adjust the timer so that the players will have a longer time to push a certain amount of times before the reset.
Update Bug: If the player clicks really fast and achieves the limit before the timer runs out... the player can keep pushing the block for the remaining time he has left. I'll get around to looking for a fix.
Update Bug Fix: Sorry, I was rushing through when I made this... I will be more careful next time. Anyways, here is what you should add into page two in order to fix this bug:
I hope that this is what you were looking for, and glad to help in anyway =D