wolf Posted March 18, 2014 Share Posted March 18, 2014 I loaded a spritesheet into a sprite. Now I want to retrieve the number of frames it has. I noticed there is mySprite.animations._frameData._frames.lengthIs that the recommended way of doing it? Surprised there isn't a property along the lines of mySprite.frameCount or something similar. Link to comment Share on other sites More sharing options...
rich Posted March 18, 2014 Share Posted March 18, 2014 How about Animation.frameTotal Link to comment Share on other sites More sharing options...
wolf Posted March 18, 2014 Author Share Posted March 18, 2014 Oops, can't believe I missed that. Thanks!! Link to comment Share on other sites More sharing options...
Incocrea Posted December 14, 2016 Share Posted December 14, 2016 hi, got a little lost how do you get to frame count for an specific sprite? thanks Link to comment Share on other sites More sharing options...
Recommended Posts