What does the code look like? And the structure of your game objects? Where is the script calling sprite.play_flipbook() and where is the sprite?
What does the code look like? And the structure of your game objects? Where is the script calling sprite.play_flipbook() and where is the sprite?