0

Hi there,

I have an image that is split into lots of little images that when flipped through would effectively animate the character. :cool:

How would i go about playing through the images, i assume i would somehow map the image into a two-dimensional array and then just run through the required parts, how would i do this?

Regards,
YoungCoder

3
Contributors
5
Replies
6
Views
11 Years
Discussion Span
Last Post by YoungCoder
0

Are the images dynamically loaded or static (resource)? What image format are you using for the images?

0

Are the images dynamically loaded or static (resource)? What image format are you using for the images?

Loading from a .gif allthough i can easily convert it to .bmp or other formats to make it easier :mrgreen:

0

You want to load them into a one dimension array really as then each array index represents a frame of animation. This could be done using windows functions quite easily (BitBlt function and the WM_TIMER message are two things to research). Curiously the win32 function LoadImage can take either bmps or gifs take your pick!

0

You want to load them into a one dimension array really as then each array index represents a frame of animation. This could be done using windows functions quite easily (BitBlt function and the WM_TIMER message are two things to research). Curiously the win32 function LoadImage can take either bmps or gifs take your pick!

Cheers :) Out of curiosity is there any kind of resource like the php.net of the win32 API :p I'm always looking to find new functions :D

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.