Is there sprite.currentFrame?

Quick question here,
How can I get the current frame of a sprite?

So, I loaded a spritesheet and then add a sprite to the scene using that spritesheet. Later on, I used this.scene.sprite.setFrame(1), and now I want to check whether the sprite is now in frame 1 or not.

How can I do that?
Thanks!

sprite.frame.name

1 Like

Thanks!! I can’t thank you enough for spending your time answering my question. What a legend~ :smile:

1 Like