Sprites have an expression AnimationFrameCount that returns the number of frames in a animation but is there an expression that gives the number of animations in a sprite ?
If it existed, why would you need that?
Develop games in your browser. Powerful, performant & highly capable.
Actually I do. I have to cycle through theses animations to choose an random one and this info is needed for many other calculation in the game
I agree, expressions like Sprite.AnimationsCount and Sprite.AnimationName(index) would be quite useful.
I needed that too, wanted to populate an Array with all Animation Names, now I have to hand code it. There are dozens of Animations..