Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Question about animated BMP files

Author
Message
Kenan
22
Years of Service
User Offline
Joined: 2nd Mar 2003
Location:
Posted: 2nd Mar 2003 20:09
Hi!

I wonder if there is a free utility which would enable me to convert GIF animations to the BMP ones.
It seems that the trial version of Dark Basic doesn't allow use of GIF animated files,(?) so I'm trying to find a way to convert those to BMP.(animations)

Maybe I'm doing something wrong here..anywho, any help would be apreciated!

Kenan
Hamish McHaggis
22
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 2nd Mar 2003 20:48
Can you even animate bmp files? I don't think you can, just write a code in DB that does it for you, like...

for l=1 to 100
sprite 1,x,y,l
wait 40
next l

or you could always use animation files (avi) instead of bitmaps.

Yum! Yum! Yum! Yum!
Kenan
22
Years of Service
User Offline
Joined: 2nd Mar 2003
Location:
Posted: 2nd Mar 2003 22:09
Hmmm..AVI?
I might find this info usefull.

Thx!

Kenan

Kenan
22
Years of Service
User Offline
Joined: 2nd Mar 2003
Location:
Posted: 2nd Mar 2003 22:15
I tried loading AVI file, but it didn't work.
Am I suppose to use LOAD BITMAP command for those or something else?

Zach
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: Ms, USA
Posted: 3rd Mar 2003 01:17
Just try load animationfor .AVI files cause .BMP's cant be animated...

Tupelo, Ms
Kenan
22
Years of Service
User Offline
Joined: 2nd Mar 2003
Location:
Posted: 3rd Mar 2003 02:40
Yeah, I tried that and it worked. (went on to edit my previous post but there was some error?)

The thing with AVI files is, it seems to me they don't get along with SPRITE function..I still have no idea how treat them compared to BMP files, but this is for another topic..

Thx again!

Kenan

Zach
22
Years of Service
User Offline
Joined: 23rd Feb 2003
Location: Ms, USA
Posted: 3rd Mar 2003 18:46
Check the help file for a command to place animations... that should help....

Tupelo, Ms
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 3rd Mar 2003 19:11
I would not suggest using .avi files as sprites in games. BMP files cannot be animated, but you can find utilities to convert each image in a gif file into a bmp, lined up horizontally and vertically, side by side. Then, by loading the bitmap, and using the get image command to get each picture frame, you can use the sprite command, and change the used image by changing the variable image in
sprite spriteNumber,xPos,yPos,image.

Whatever I did I didn't do it!
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 3rd Mar 2003 19:42


If you have a bitmap file like I described, this code will
make the 10 frames into images 1 to 10 and will loop the anim. Hope this helps ^_^

Whatever I did I didn't do it!

Login to post a reply

Server time is: 2025-06-12 11:25:24
Your offset time is: 2025-06-12 11:25:24