You can give items from the currently selected character to other characters in your party!
These is a big thing for me, because when I started thinking about this, I had absolutely no clue how to do it.
You grab an item and you drag it to another characters face:
It was a little complicated because I already have a dragging to the left and right of the inventory.
The draggable item will appear on mouse only when the mouse cursor is above the inventory, so as long as the cursor(or finger for mobile) is on the inventory, you can drag the inventory left or right.
I’m going to enter a little into programming, maybe someone will find this useful.
First thing I created a prefab of a 2D sprite with a default picture and named it “movingItemPrefab”, then I attached a simple script on it named “movingItemController”:
Then I created a script on the Invetory(it’s more complicated I’ll write only the important parts):
I hope this will help someone 🙂 Click on the images to see it better.