limit numbers of clicks

Discussion and feedback on Construct 2

Post » Sat Jul 23, 2016 2:50 pm

How can I limit the numbers of clicks?
lets say I need to blow tiles and I have restriction of only 2 pops in a single turn....

Thank you
Posts: 1
Reputation: 152

Post » Sat Jul 23, 2016 3:52 pm

A simple boolean/variable limiter can make it work. But I'll just stick with number variables and I'll use the touch object instead of the mouse but it still works the same with the mouse object.

For example:

Global Number Variable named "ClickCount" .

*On Touched Object1
. -----> Add 1 to Global Variable - ClickCount.

*ClickCount less or equal to 2 & *On Touched - Blow Tile.
. -----> Call Function ("Blow")
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
Posts: 1,153
Reputation: 63,167

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests