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 / how do i make a animated sprite and code it in DBCLASSIC so i can use it in a game??

Author
Message
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 3rd Oct 2004 01:05
hi

i need to know how i make an animated sprite and put it in a game...
i use DBCLASSIC

The Nerd

i make games, i play games... But the fun thing is that i like to make them more than play them....
X_MEN
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 3rd Oct 2004 09:15
hope this help



You can do it if you try
Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 3rd Oct 2004 10:11
To explain it a little:

You have to draw each frame of the animation in seperate images. Then you load each image seperately. Now, whenever you need the frame changed, you just call a different image when the sprite command is called.

Get it?

Xander Moser - Bolt Software - Firewall
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 8th Oct 2004 14:41
No. Could you scribble that out in code? Seriously, Ive been driling away at this too. The only way I got it to work was by putting the sleep command in each time the image switched. If not for the sleep command, the images would load too fast and..well, ditto.

Comics and Games-Bread and Butter.
PoHa!84
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 9th Oct 2004 00:23
Game Freak: Most people don't like it when you ask questions in their post; besides, you have your own thread, and as far as I can tell, its a different problem than what Nerd is having.

Nerd: what bolt said. Here's a sample code:



something
Game Freak10K
21
Years of Service
User Offline
Joined: 29th Apr 2004
Location:
Posted: 10th Oct 2004 15:33 Edited at: 10th Oct 2004 15:42
jeez
Ok I wont pester anymore--but your code snippet just solved my problem, honest to God.

Comics and Games-Bread and Butter.

Login to post a reply

Server time is: 2025-05-24 16:53:02
Your offset time is: 2025-05-24 16:53:02