• Status: Solved
  • Priority: High
  • Security: Public
  • Views: 162
  • Last Modified:

Python blit doesn't do animated automatically, must I blit each frame?


I finally got Python images to be plopped on the screen, just blitting, a lonely mutalisk, but not flapping.
To make my mutalisk flap its wings in python, or any of my many animated GIF's, for that matter, must I blit them frame by frame? I was surprised it wasn't automatic flapping, like in other situations.

Here is the blit code that finally worked. . .

1 Solution
Giuseppe "Pino" De FrancescoSenior Solution ArchitectCommented:

In any language you use (Python, Java, C++, C# and so on) BLIT function simply draws the result of blending two textures, or, more accurately, draws the result of blending a texture onto the current. This implies that if you want to create an animation you have to BLIT every given amount of frames, depending on the Frames Per Second that were used to generate the animation sprites, so, to be clear, if an animation spritesheet was baked at 24 FPS and your game is running at 48 FPS then you have to draw the next sprite every other frame.

beavoidAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now