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:
gyazo.com/95ead28a0236e8dc9f78c486f5b94a99
Array propertys:
gyazo.com/1dd3cb91ae2ca6fa1651bf59513ac66d
Gift working:
gyazo.com/0f061bc3f46205eece7325eb580ecfd0
TY ALL!
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!!!