constrain to mouse position question..
expired_012
Member Posts: 1,802
Hi,
Obviosuly, constraining the x and y positions of the actor to the x and y positions of the mouse will let you drag the actor. When touching your new draggable actor in the center it's fine, but when you touch it near its corners then the actor will actually move slightly to that position.
How do I make it so that a draggable actor can be touched anywhere and it will maintain it's current position until it is dragged?
Obviosuly, constraining the x and y positions of the actor to the x and y positions of the mouse will let you drag the actor. When touching your new draggable actor in the center it's fine, but when you touch it near its corners then the actor will actually move slightly to that position.
How do I make it so that a draggable actor can be touched anywhere and it will maintain it's current position until it is dragged?
Comments