I am destroying a player sprite based on it's UID. But I also want to destroy everything pinned to the sprite..
Ideas?
Develop games in your browser. Powerful, performant & highly capable.
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
Made a "fix" where I added another Array for the Pinned Sprite. Might just do a 2D array instead.
Oh. Cheers. Ill look that up :)