Destroy everything pinned to object?

Get help using Construct 2

Post » Fri Mar 01, 2013 9:55 pm

I am destroying a player sprite based on it's UID. But I also want to destroy everything pinned to the sprite..

Ideas?
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Fri Mar 01, 2013 10:47 pm

Add all the pinned items to a container with the player sprite. Not only will the items be spawned with the player automatically, but they'll be destroyed along with it.
https://www.scirra.com/manual/150/containers
B
6
S
1
Posts: 67
Reputation: 986

Post » Fri Mar 01, 2013 10:51 pm

Made a "fix" where I added another Array for the Pinned Sprite. Might just do a 2D array instead.
B
40
S
11
G
4
Posts: 665
Reputation: 8,403

Post » Fri Mar 01, 2013 10:52 pm

Oh. Cheers. Ill look that up :)
B
40
S
11
G
4
Posts: 665
Reputation: 8,403


Return to How do I....?

Who is online

Users browsing this forum: Bad Wolf, davides, NRABrazil, Vallar, WhosWho and 32 guests