🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Bitmap loader problems
I need my bitmap loader to do these things:
Load image based on size[Sorta]
Make 255,0,255 transparent[DONE]
Allow animated bitmaps
I just cannot figure out how to make the bitmap animated
Here's my code because I'm too lazy right now <_<
http://rapidshare.de/files/15860929/pcn.zip.html
Please tell me what to do.
~Thanks, Axesor
animating bmp's are sort of easy.
1. load all your frames into sepatate textures, or a single one, but then you have to mess with the uv coordinates.
2. start with the first frame.
3. every 0.1 seconds (or whatever) you switch to the next frame in line.
4. when you get to the end you go back to the beginning.
As you can see, animating bmp's is easy, but i can't tell you exactly how to code it, you have to figure out that part for yourself.
1. load all your frames into sepatate textures, or a single one, but then you have to mess with the uv coordinates.
2. start with the first frame.
3. every 0.1 seconds (or whatever) you switch to the next frame in line.
4. when you get to the end you go back to the beginning.
As you can see, animating bmp's is easy, but i can't tell you exactly how to code it, you have to figure out that part for yourself.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement