Hello guys! I made an inventory X and all works well, but nowadays I am working in a XY inventory but these dosnt works well because when i collision with the object for pick up, the frame of the slot don't change to the frame of the item. (srry about my english)
There some photos:
Array on sheet:
Develop games in your browser. Powerful, performant & highly capable.
You are checking the Position against the data. a) the position is two numbers, not one: X,Y
b) with an X & Y already, you don't have to search the array, just index it directly: Inventory_Array.At(Inv_Slot.PositionX, Inv_Slot.PositionY) = 0 ...
Thanks you BlackHornet but I already changed my inventory type to one more simply and easy to do. So Thanks youu Black I ll have present it!!!