Keeping Track of Instances

BlitzMax Forums/BlitzMax Beginners Area/Keeping Track of Instances

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What methods are people using to keep track of all their different object instances?

For example when a player fires a bullet instance, how do u track the number of bullets flying around? and when one is destroyed?

I was thinking of a variable size array! are these possible in BMax?

If it is possible, how would you re-organise the array when one is destroyed? Say for example u have 3 bullets, bullet[0], bullet[1], bullet[2]. Now assume bullet[1] is destroyed, you would want to move bullet[2] in to bullet[1] wouldn't you??