Using sprites...

Reply

Join Date: Aug 2004
Posts: 193
Reputation: YoungCoder is an unknown quantity at this point 
Solved Threads: 2
YoungCoder's Avatar
YoungCoder YoungCoder is offline Offline
Junior Poster

Using sprites...

 
0
  #1
Apr 5th, 2005
Hi there,

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

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
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 193
Reputation: YoungCoder is an unknown quantity at this point 
Solved Threads: 2
YoungCoder's Avatar
YoungCoder YoungCoder is offline Offline
Junior Poster

Re: Using sprites...

 
0
  #2
Apr 6th, 2005
I assume there is a simple bitblt way of doing this
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 219
Reputation: BountyX is an unknown quantity at this point 
Solved Threads: 8
BountyX's Avatar
BountyX BountyX is offline Offline
Code Guru

Re: Using sprites...

 
0
  #3
Apr 6th, 2005
Are the images dynamically loaded or static (resource)? What image format are you using for the images?
A Hacker's Mind:
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes..." - J.D.Salinger
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 193
Reputation: YoungCoder is an unknown quantity at this point 
Solved Threads: 2
YoungCoder's Avatar
YoungCoder YoungCoder is offline Offline
Junior Poster

Re: Using sprites...

 
0
  #4
Apr 6th, 2005
Originally Posted by BountyX
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:
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Using sprites...

 
0
  #5
Apr 7th, 2005
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!
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 193
Reputation: YoungCoder is an unknown quantity at this point 
Solved Threads: 2
YoungCoder's Avatar
YoungCoder YoungCoder is offline Offline
Junior Poster

Re: Using sprites...

 
0
  #6
Apr 8th, 2005
Originally Posted by 1o0oBhP
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC