notalentgeek Posted October 7, 2017 Share Posted October 7, 2017 Let say, with `sprite.animations.add("run");` I add an animation to an AnimationManager object. How can I see what animations are already there? Looking through, it is actually in `sprite.animations._anims` but it is listed as an object that cannot be read systematically (for example, `sprite.animations._anims[0]`). Link to comment Share on other sites More sharing options...
notalentgeek Posted October 7, 2017 Author Share Posted October 7, 2017 Found the solution, `Object.keys(sprite.animations._anims)`. The codes return a list of string. Link to comment Share on other sites More sharing options...
Recommended Posts