Destroy all Instances with Delay

Get help using Construct 2

Post » Sun Jul 22, 2012 7:50 am

Say I have 6 instances of an object on the screen. Right now using the For Each Event it destroys all the objects at the same time. That's ok, but is there a way to put a timed delay between each instance being destroyed?

This capx doesn't show much, but when the button is clicked I would like to destroy each sprite with a 1 second delay between each one.

http://www.edfarias.com/html5/timedelaydestroy.capx

Thanks so much.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993

Post » Sun Jul 22, 2012 1:27 pm

Here's one way to do it:
destroySpritesWithDelay.capx (r99)
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Sun Jul 22, 2012 2:06 pm

So simple, but effective. Thank you very much.
B
94
S
29
G
11
Posts: 1,545
Reputation: 20,993


Return to How do I....?

Who is online

Users browsing this forum: Kagubro, Yahoo [Bot] and 31 guests