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 Professional Discussion / How to delete Character Controllers?

Author
Message
gopherbro 94
17
Years of Service
User Offline
Joined: 21st Dec 2008
Location:
Posted: 11th Apr 2010 18:27 Edited at: 11th Apr 2010 18:30
I'm trying to make levels while using physics and character controllers.
I need to know how to level progress with physics, since that always seems to be the problem. Right now i have a clearworld() function that gets rid of all objects,sounds,etc. and phy clear and phy end..
but when the timer runs out the error tells me that the character controller already exists.
Please help me try to figure out how to delete the physics objects correctly

Code:


* I REMed out the .dbo and skybox... since they arent neccessary
BMacZero
20
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 11th Apr 2010 22:58
Move the PHY CLEAR and PHY END after the FOR loop rather than inside it. I can only imagine DarkPhysics gets really confused when you try to end it after it's already ended, much less do it 1000 times .

Login to post a reply

Server time is: 2026-07-26 12:32:52
Your offset time is: 2026-07-26 12:32:52