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 / Removing objects from Advanced Lighting?

Author
Message
Broken_Code
15
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 4th Nov 2013 19:39
Hello!

I'm using EVOLVED'S AL for my game but I'm having Problems deleting objects. I'm using the command 'Object_Remove' atm, but that gives a 'Array doesn't exist or index out of bounds' error when the DBP object is deleted.

Anyone got any ideas on what's going on?

Thanks,
Bruce
Rudolpho
20
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Sweden
Posted: 4th Nov 2013 20:51
It probably uses its own array indices and expects those to be provided to the Object_Remove function rather than the actual object ID. If so, the array index is most likely returned by Object_Create / similar functions.


"Why do programmers get Halloween and Christmas mixed up?"
Broken_Code
15
Years of Service
User Offline
Joined: 20th Aug 2010
Location: Bremen, Germany
Posted: 4th Nov 2013 21:46 Edited at: 4th Nov 2013 21:47
I thought that too but I checked the code and it expects a DBP object ID. Has anyone got any experiance with AdvLighting?
SamKM
17
Years of Service
User Offline
Joined: 25th May 2009
Location:
Posted: 4th Nov 2013 21:50
You might want to check you're using the latest version of Advanced Lighting... I tried playing around with object_remove(), but couldn't get the array error :/

Login to post a reply

Server time is: 2026-07-07 01:53:40
Your offset time is: 2026-07-07 01:53:40