That would work. Kind of what I was thinking. The only thing is mouse sensitivity makes no sense when clicking. At least to me. I’d expect where I clicked to be where I clicked.
What behavior is the op trying to go for? He didn’t explain much.
Sensitivity could work for click swipes.
Global number px=0
Global number py=0
On left click
— set px to mouse.x
— set py to mouse.y
Left mouse down
— sprite: set x to self.x+(mouse.x-px)*1.1
— sprite: set y to self.y+(mouse.y-py)*1.1
— set px to mouse.x
— set py to mouse.y
I guess you could take that idea with mouse lock too.