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 / animation and file help :P

Author
Message
sirsiddy
18
Years of Service
User Offline
Joined: 15th Jan 2007
Location:
Posted: 4th Apr 2007 06:31
I would have asked this in the post i started a while ago but i cant find it . Anyways I was wondering if for a 2d game using sprites, do you animate the sprites by making a function of the fliping through the image numbers, or do you use AVI or watever it is? I heard about it from a friend. Also I was playing around on darkbasic, and i loaded an image in and made it so you could move it around on the x and y axis, i saved it but now i cant open it again because it says it isnt a darkbasic file? any help?
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 4th Apr 2007 14:27 Edited at: 4th Apr 2007 14:27
Quote: "do you animate the sprites by making a function of the fliping through the image numbers"


Yes that would be one way of doing it, Don't use AVI for that. AVI is basically a movie that you can load into darkbasic. It doesn't have the same propeties of a sprite e.g. you can't check for collision. I use AVI at the start of my games as an introduction.

As for the 'Non darkbasic file', I have one idea as to how it happened. Once, I made a version of a game and called it "whatever v1.2". Darkbasic saw the '.' and asumed I wanted to save it as a '.2' file extension. So all the data was saved, but not as a darkbasic file ('.dba' file extension).

Does that make sence to you?


Nothing is impossible...
sirsiddy
18
Years of Service
User Offline
Joined: 15th Jan 2007
Location:
Posted: 4th Apr 2007 17:38
yes, but how do i get it back? do i have to move it back into the darkbasic folder?
NanoGamez guy
18
Years of Service
User Offline
Joined: 13th Jan 2007
Location: Closer than you think...
Posted: 4th Apr 2007 21:55
What I would do is make make a seperate darkbasic file in the directory with this line in it:

Copy file "whatever.something","whatever.dba"

That should work.


Nothing is impossible...

Login to post a reply

Server time is: 2025-05-27 18:40:08
Your offset time is: 2025-05-27 18:40:08