I have 1 sprite called AICar, this is the car with the racing logic in my game.
Then I have a family with all the other cars possible sprites, I select one of the family members and create it so it stays over the object with the logic and replaces it with a cool drawing
The problem is that I need to set the correct animation depending on AICar's angle of movement. How can I link each "coverSprite" to their respective AICar object, they are all create dynamically in a loop until now. Can I use UID or IID for it? I've never messed with them.
So far all "coverSprites" change their animation in relation to the same AICar object. (not sure if 1st or last one created)