I have 2 animation for 1 sprite. I want to know how to return the count of the second animation, not the first. The expression Sprite.AnimationFrameCount returns the the number of frames of the 1st animation.
I want to create an array with all unique random numbers.
Develop games in your browser. Powerful, performant & highly capable.
How do I get the number of animation frames of a sprite when it is not the default animation frames? I have a sprite with two sets of animation frames. I need to retrieve the number of animation frames in the second set not the first set.
Member since 10 Oct, 2016