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
100
S
31
G
11
Posts: 1,552
Reputation: 21,502

Post » Sun Jul 22, 2012 1:27 pm

Here's one way to do it:
destroySpritesWithDelay.capx (r99)
B
55
S
28
G
19
Posts: 1,520
Reputation: 25,540

Post » Sun Jul 22, 2012 2:06 pm

So simple, but effective. Thank you very much.
B
100
S
31
G
11
Posts: 1,552
Reputation: 21,502


Return to How do I....?

Who is online

Users browsing this forum: bigezy80 and 12 guests