I'm going to handle collisions for sprites using TLists. One for bad guys, one for enemy bullets and one for destructible objects and one for player bullets. But I have issue with understanding how deletion of objects from TList works.
If I want to delete object (with freeing memory), I need to do:
right?Code:MyList.Items[4].Destroy; //let's say object we want to delete has index of 4 MyList.Delete(4);
Bookmarks