I am trying to drag an item when I click on it and drag it till I release it.
Also I want to follow x only and between 2 points. I have tried every example and I have been working on it for 2 days and it doesn’t work.
I can drag the item any where or I know how to set it to follow x only but I can’t have it stop when I get to the wall or something. My main goal is to be able to drag this item between point XA and XB and when it get to these points it will stop and wont follow the mouse even when the mouse down is pressed.
How can I make it happen?
If you guys could help me with this I would appreciate it.
Thank you