Okay...Can any1 here help me how to Load a sprite
and animate ''em?
i have a bitmap that contains 6 frame of sprite
but i dunno how to load,draw and animate ''em
i don''t have the specific function/engine
so please some1 help me
regards,MadKnIghT
May 12, 2000 12:46 PM
If you are developing your game with DirectX, you must:
1- Create a surface with CreateSurface
2- Load the bitmap into the surface with the Win32 API
Then you can blit this surface into the Primary surface
1- Create a surface with CreateSurface
2- Load the bitmap into the surface with the Win32 API
Then you can blit this surface into the Primary surface
May 12, 2000 01:55 PM
MadKnIghT, it''s really simple... I dont known how your sprite are disposed in your bitmap. But anyway, i think the best way will be to create a array of small bitmap of the size of the sprite and simply load each frame of the sprite to a index in this array. For animate them, simply make a loop that will show each frame one after the other...
The other thing that will be possible it''s to load all the frame of your sprite into one bitmap in mem. then calculate the frame to show..
Sorry, im french ...
Just hope that will help you !!
The other thing that will be possible it''s to load all the frame of your sprite into one bitmap in mem. then calculate the frame to show..
Sorry, im french ...
Just hope that will help you !!
if u''r developing game under directX, then I''ll give u a link:
Make each sprite as a bitmap with frame index like sprite0.bmp, sprite1.bmp and so on..
then go to :http://members.home.net/theluckyleper/
tutorials and directx animation.. that''s all !! copy and be happy!!
Make each sprite as a bitmap with frame index like sprite0.bmp, sprite1.bmp and so on..
then go to :http://members.home.net/theluckyleper/
tutorials and directx animation.. that''s all !! copy and be happy!!
" Do we need us? "Ionware Productions - Games and Game Tools Development
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement