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 / Problem with - 'array insert' and 'array delete element'

Author
Message
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 4th May 2011 01:13 Edited at: 4th May 2011 01:24
Can anyone tell me where I'm going wrong with this code. I've only recently got used to STD:: <list> and <vector> but this is a new one for me. I'm getting error during object removal.



EDIT: I have tried the 'dec c' at the head and footer of the main loop.

EDIT2: fixed one bit but still the error about removal of object.

Warning! May contain Nuts!
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 4th May 2011 01:30
Argh! No worries, it does work after all that. I didn't need the SC_RemoveObject in it because I didn't have it setup on the bullets...

Fixed...

Warning! May contain Nuts!
WLGfx
18
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 4th May 2011 02:00
Here's the working code if anyone wants a nosey at it:


It's going to be part of a complete open source game I'm working on.

Warning! May contain Nuts!

Login to post a reply

Server time is: 2026-07-11 12:19:32
Your offset time is: 2026-07-11 12:19:32