Need algorithm!

Miscellaneous Forums/General Discussion/Need algorithm!

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.

Perturb:
Too cumbersome. Would need to use two arrays and keep empty spots in arrays at the end or search the arrays for empty spots each time a sprite is added and removed. Would confuse uers looking to make changes to the system as well.

Puki:
That's similar to perturbatio's suggestion. One alternative I considered which is also similar though would be to keep a list for each sprite of the sprites that have been collided with it. But that would require me to loop through that list to check it with each collision. Might not be fast and definitely not elegant.