Jump to content

Get sprite frame count


wolf
 Share

Recommended Posts

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.length

Is 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

  • 2 years later...
 Share

  • Recently Browsing   0 members

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