I am making a GUI inventory type system, that allows you to move items around into different slots. You do this by clicking on the item slot, it will attach to your mouse and then you can click to place it back down in another slot. Currently I have just a static position for the GUI that is following the mouse, so when I pickup an item, it kind of "jumps" to that spot.
I need to think of a way to pickup the item into the mouse slot but in the exact same position of the inventory slot. To do this I need to know the mouses position relative to that slot GUI. I can not think of anyway I could do this, so any help would be awesome!
If there are any other questions as to what I am doing I will try best to answer them!
Thanks.