Hello, here`s the thing:
I am creating a inventory system that is its own layout and I am storing object data such as armor etc. in to instance variables of the sprite. Item creation (transferring collected items from actual level via Web storage) is working fine and the correct values are transferred.
Inventory system works like this: you click object and then you click item slot and item moves to that slot. This also works fine.
My problem is this: I can`t figure out how to switch two instances of the same sprite in to each other's positions.
So i need to have it working like:
Click Item1 in inventory slot 2
Click item2(same sprite but different instance) in inventory slot 4
Item1 snaps to inventory slot 4 & item 2 snaps to inventory slot 2.
I tried to attach Capx but it kept saying that uploaded file is empty...
Thanks in advance