I'm making some sort of firework simulator. I have a sprite called "Mortar" that is set on a timer. When the timer expires, I want to create a "Flash" sprite at it's exact location, plus some other things.
The problem is that there could be multiple Mortars running at any point, so the program won't know which one to create the Flash at.
I've looked into UIDs a little bit. How would I figure out an object's UID, then assign it's position to that specific ID?