![]() |
| ||
| Using sprites... 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 |
| ||
| Re: Using sprites... I assume there is a simple bitblt way of doing this :cool: |
| ||
| Re: Using sprites... Are the images dynamically loaded or static (resource)? What image format are you using for the images? |
| ||
| Re: Using sprites... Quote:
|
| ||
| Re: Using sprites... 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! |
| ||
| Re: Using sprites... Quote:
|
| All times are GMT -4. The time now is 9:24 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC