I am trying to figure out the best way to go through all the instances of a type. You can add them to a list in the New() method, but you have to create a special method to remove them from the list. One of the cool things about BMX is you can just delete objects by saying a=null, but now you have to write two lines just to delete an object:
Or you can create a new function:
This is no good.
There must be a more efficient way to do this.
a.destroy() a=null
Or you can create a new function:
Function DeleteThing(a:thing) a.destroy() a=null
This is no good.
There must be a more efficient way to do this.