Jump to content

change animation name


Recommended Posts



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


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...