• Advertisement
Sign in to follow this  

Question About Animation

This topic is 2340 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I would like to use animation in my video games. Suppose I am considering a 30 frame sequence of a person walking.

I have Poser, and I can render out 1 frame at a time, for example, as 30 separate .PNG files.
The other option I have is to make a movie -- an .AVI file. (I read somewhere you can use alpha channels in .AVI files if you have the right video codec).


What is the better approach here? I will be having a lot of these persons in the game... like 8 or 9 on the screen at any one time. I figure each person would need 4 separate AVIs -- one for walking up, down, left, and right.

And are AVIs something that C++ can handle easier than PNGs?

Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement

I would like to use animation in my video games. Suppose I am considering a 30 frame sequence of a person walking.

I have Poser, and I can render out 1 frame at a time, for example, as 30 separate .PNG files.
The other option I have is to make a movie -- an .AVI file. (I read somewhere you can use alpha channels in .AVI files if you have the right video codec).


What is the better approach here? I will be having a lot of these persons in the game... like 8 or 9 on the screen at any one time. I figure each person would need 4 separate AVIs -- one for walking up, down, left, and right.

And are AVIs something that C++ can handle easier than PNGs?

Thanks in advance



99.99999 times out of 100, if you are dealing with a 2D game, you want to deal with PNGs ( or another 2D file format ). What you will ultimately want to research is a "spritesheet", which is basically just all your images/frames smushed together into a single image. This is pretty much the way everyone does it.

There are some occasions where a movie would be the way to go, but they are exceptional and probably beyond the scope of a beginner.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement