I've already read all the tutorial on the array and inventory sistem but i can't figured out this: when the player grab an object, this should be put inside in the invetory firts slot avaible but this happen;
The object fills all the slots in invetory. This is the code i use:
The logic i still looking for is: grab the item, is the first slot avaible? yes put in that, else check for the next one.
Please help!