I’m using a list for the inventory, and when the player drops an item (Inventory.remove(index)) all of the items in the inventory shift up a spot to fill in the empty space. My question is:
Is there a way to stop this from happenning?
Should I be using an array?
If I use an array how would I add an item to the inventory (Equivalent to list.add)?
Does anyone have any suggestions?
Thanks