To keep track of my object list, I use types in combination with arrays.
For example, a simple type would be
type Object
id as integer : `The id number
t as integer : `this for example tells me whether it's a ramp or a cube, ...
obj as integer : `this is the object that has this id
endtype
dim Obj(0) as Object
After that, it's easy to manipulate objects, id's, etc. If you create a new object, you simply use
array insert at top/bottom, if you want to delete, you use
array delete element.
And no problems with ID's, object numbers, etc.
I don't if this helps (I hope so)
It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.