How do I Block Sprites after using.

Get help using Construct 2

Post » Tue Aug 16, 2016 1:27 pm

Hi i'm doing a simulator where sprite represent actions and i have to make them collide with other sprites using drag and drop, what i need to do is when some sprite collide i need to block all sprites for 5 seconds.
thanks for any suggestion or idea =).
B
3
Posts: 8
Reputation: 193

Post » Tue Aug 16, 2016 5:31 pm

Do you mean block all sprites from being dragged and dropped? You can set a variable around mouse click where the click only works when variable=true. When the sprites collide, set this variable to false for 5 seconds, and then back to true.
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Tue Aug 16, 2016 5:59 pm

plinkie wrote:Do you mean block all sprites from being dragged and dropped? You can set a variable around mouse click where the click only works when variable=true. When the sprites collide, set this variable to false for 5 seconds, and then back to true.


yes block all sprites from being dragged until 5 seconds. and how i set a variable for 5 seconds? that also works for touch? i'm new =/
B
3
Posts: 8
Reputation: 193

Post » Tue Aug 16, 2016 6:26 pm

Something like this :
Image
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Thu Aug 18, 2016 2:26 pm

plinkie wrote:Something like this :
Image


thanks it works =)
B
3
Posts: 8
Reputation: 193


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests