is there a way to code something so that you can drag inside of a specified area, but no where else?
like say, just inside a box with sides a couple pixels thick.
Or, at the very least, have it so if they drag it out, have it snap back in when they let go of the mouse? I've been trying to figure this out, because i want them to be able to reorganize items in their inventory, but not have them be able to put them just randomly floating outside of it. throw your ideas at me