How do I Remove All Objects from Layout on event

Get help using Construct 2

Post » Sun Feb 07, 2016 4:12 am

Is there a way to remove all the objects on a layout (I'm doing a Level Editor and want a "Delete All" button/sprite) without restarting the layout? Or do I have to individually "Destroy" each object with its own event?
B
8
S
2
Posts: 14
Reputation: 596

Post » Sun Feb 07, 2016 4:22 am

I don't think so, but you can put all your sprites in a family, all you buttons in another, etc., and destroy each family.
B
26
S
9
G
2
Posts: 78
Reputation: 2,524

Post » Sun Feb 07, 2016 5:11 am

Put all the Sprites within a family and make a Destroy Button.

On Button Pressed -----> All Sprite Family Destroy
All Sprite Family Inside Layout

Should work, I think.
Risk Rocket now available on Google Play
Image
B
35
S
15
G
6
Posts: 337
Reputation: 6,275

Post » Sun Feb 07, 2016 9:21 am

If you can't use families then on event
destroy object
destroy object
destroy object
destroy object
B
29
S
13
G
10
Posts: 355
Reputation: 8,317


Return to How do I....?

Who is online

Users browsing this forum: imhotep22, plinkie, Yahoo [Bot] and 8 guests