ok here is what I'm stuck on I have one sprite Call wooden box and when you destroy it, it will spawn a loot.
Now i want to add in random loot.
The problem is when i have multiple wooden box to destroy it will spawn both item instead of just one to spawn.
My question is this is there a Condition that allows me to let the code work individual for each new sprite instead of looping it all to that one same sprite causing my code an spawn object to change every time i kill a new box