How do I let the player click a block only once?

Get help using Construct 2

Post » Fri Nov 21, 2014 6:34 am

Hi there,

I'm working on a game in which the player has to click blocks to earn points.
If he clicks the block it flashes for 1 second after which it is destroyed.
However, I've noticed that if he clicks on the block again before it is destroyed, he earns point again.
That should not be the case: the game shouldn't end too soon... ;)

How can I make the block 'freeze' or something so that it can't be clicked anymore?

Thanks in advance!
Image
B
54
S
24
G
12
Posts: 96
Reputation: 10,316

Post » Fri Nov 21, 2014 6:47 am

Instance variables would be one way: https://www.scirra.com/manual/73/instance-variables
B
74
S
28
G
17
Posts: 256
Reputation: 15,125

Post » Fri Nov 21, 2014 8:36 am

Things in life can sometimes be so bloody simple... :)

Thanks Xavier for your fast and helpful reply!
Image
B
54
S
24
G
12
Posts: 96
Reputation: 10,316


Return to How do I....?

Who is online

Users browsing this forum: ditocruz, R0J0hound, uzumiapps, Yahoo [Bot] and 32 guests