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.

Newcomers DBPro Corner / When I try to change levels I am getting errors

Author
Message
Noob
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United Kingdom
Posted: 10th May 2003 22:44
When I try to change levels on my game I am getting errors saying object already exists is there a way to clear the screen fully of all objects and have them re-render?

Thanks
Kentaree
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 11th May 2003 00:50
Your problem is is that for one level, you already have a lot of objects loaded, but when you change to another level, you try to load other objects into the same object number.

i.e
level1:
load object "man.x",1

level2:
load object "machine.x",1

And this gives an error

Try to run something like this:



And, if you're running DBPro, add



after it to increase performance.

Whatever I did I didn't do it!
AsriCE
21
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Brunei
Posted: 11th May 2003 08:34
It's better that you don't load and delete objects on the fly. Instead, it's best if you load everything on startup and when you want to change levels, you can just hide and show the objects.

And DBC also supports the "Flush Video Memory" command. It's best you put that command after you've hidden and shown all the objects for every level change.

Asri CE Crew

Anak Brunei!

Login to post a reply

Server time is: 2024-09-20 07:30:36
Your offset time is: 2024-09-20 07:30:36