Drag & drop actor by touch? (rpg inventory solution)
Is there any solution to the touch function when it gets to drag and drop?
I developed a simple inventroy to my game that pop up when you press a certen actor (backpack) on screen.
Inside I already set spawn rules for 3 different potions. BUT! I want to ask, Is there a way to use touch and move these actors slots?
At the moment the inventroy (backpack) is one big actor with slots painted in photoshop.
The potions spawn in correct x,y location to the inventroy actor.
What I want is that when you use touch on 1 item (actor) you should be able to move it to a new slot.
I guess that I can use transparent actors spawned on the slots then hook the items (potion actors) somehow but not sure.
Is it to complex or do someone have a solution to this issue?