Here an example of the code where the player goes left and right with animation "sinistra" and "destra".
Now.... I want to "load" or something like that and replace the "pg" sprite with another sprite that have the same name and same names of all animations, in order to avoid to reprogram all the instances.
Something like that :
_ load sprite "pg1.png" to PG SPRITE ( i cant choose from two or more player sprite, for example : pg1.png, pg2.png etc... )
_ right arrow is down -> PG SPRITE set animation to "right" etc....
So the name PG SPRITE remain the same, and all the animations like "right" , "left" , "jump" etc. remain the same.
I hope it's clear now, i'm sorry for the bad english!