neon Posted March 7, 2014 Share Posted March 7, 2014 Hello, I would like to change the name of the animation dynamically.Something like var animation = sprite.animations.getAnimation("Name1");...some code...animation.name = "Name2";The name property is changed like expected but i still can't do sprite.animations.getAnimation("Name2"). I see that the names are stored as a hash with the old name as a key. Is there a way to change the name or do I have to write my own getAnimation function or rehash to the new name? Link to comment Share on other sites More sharing options...
Recommended Posts