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 / deleting all sprites

Author
Message
Dr Manette
20
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 7th Jul 2006 04:02
I'm making a 2d game and once the player dies, I wish to delete all of the sprites so that I don't get an error that says sprite already exists. Here is the code that I use to do it:

However, this does not work. I know there isn't a delete all sprites command(which would be very useful in a future update of dbc or dbpro) so how can I accomplish this. Or is my code just plain wrong?

Bio Fox...four guys, one computer, games like nobody's business.
D Ogre
22
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 7th Jul 2006 04:47
As far as I can see your code should work. Just make sure that the two
limit variables have values exceeding the start value in your loops.

Login to post a reply

Server time is: 2026-07-07 00:31:27
Your offset time is: 2026-07-07 00:31:27