Is it possible to get current frame being animated?

Is it possible to get current frame being animated?
0

I use texturepacker for walking animation (1 to 25 walk cycle frames), when I press some key I need to get active frame index when key pressed. Is it possible?

thanks

sprite->getSpriteFrame() will return the current SpriteFrame object.

1 Like

@tdebock thank you very much, that is actually what I looking for.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.