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 / Loading/Unloading Levels????

Author
Message
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 3rd Jun 2004 09:07
I'm working on a game that will have multiple levels. Each level will be very large. I figure it would be best to load each level as the player makes it there, and unload the level they just came from to free up memory and what not.

I know how to load objects, sounds, etc. but I don't recall ever seeing any code to unload objects and what not. How would I unload a level??

Thanks,
Gowmars
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 3rd Jun 2004 13:59
well I thought you unloaded it when you Deleted it..
so I guess thats how you would do.. :p

Thief 3 : Deadly Shadows, The BEST game in the WORLD!
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 3rd Jun 2004 17:17 Edited at: 3rd Jun 2004 17:18
delete object
delete sound
delete music

perhaps keep a list of each map's properties. Such as object numbers, sound numbers, etc. That'll make it easier to create functions like, load world(), delete world().

"eureka" - Archimedes
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 3rd Jun 2004 21:36 Edited at: 3rd Jun 2004 21:38
I see now!! I didn't think of that. It was so simple and I was looking for a complicated answer.

Thanks =D
Oibaf2000
21
Years of Service
User Offline
Joined: 31st Jan 2004
Location:
Posted: 3rd Jun 2004 23:02
Along the same lines..if I am loading a level how do I put up a loading screen while the loadworld()/deletworld() operation is going on? ..does the animation/avi have to be part of the loading function or include code? And how do I keep it running until the function is done? This probably simple answer but I think I am makign this too difficult for my self...
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 4th Jun 2004 00:56
That was going to be my next question also. How do I make a loading screen and get it to stay up till everything is finished loading?
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 4th Jun 2004 03:06
Just get an image, turn it into a sprite so it covers everything else, then hide or delete it when the loading is done.

Its not a bug, its a feature!
Gowmars
21
Years of Service
User Offline
Joined: 26th Sep 2003
Location: United States
Posted: 4th Jun 2004 12:17
oh i see!!!! thanks for all your help guys.

Login to post a reply

Server time is: 2025-05-23 22:33:46
Your offset time is: 2025-05-23 22:33:46