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
97
S
30
G
11
Posts: 1,545
Reputation: 21,178

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: 25,150

Post » Sun Jul 22, 2012 2:06 pm

So simple, but effective. Thank you very much.
B
97
S
30
G
11
Posts: 1,545
Reputation: 21,178


Return to How do I....?

Who is online

Users browsing this forum: Lokitran, mrtumbles, RageByte and 1 guest