ok, i am making a inventory sytem, and i ran into a problem:
when my character pick up an item, how would it detect which type of item it is, so it can find the right icon to put in the inventory window?
and heres my plan for the inventory:
name all the slots "slot1", "slot2", "slot3", and so on.
make a currentSlot variable
and when the item is picked up, just put the item icon, in the inventory, something like:
"slot"+currentSlot.set(Gfxs(items, icon));
currentSlot++;
the reason i am saying this, is that there may be a better way to do this, or some build in feature in the engine that could make it easier or something?
anyway, hope you can help