You can place an object on the edge of a circle with:
X=radius*cos(a)+centerX
Y=radius*sin(a)+centerY
To make it move around the circle you’d change “a”. One way to do it is:
A=mouse.x
Or you can tune that
A=(mouse.x-scrollx)*factor+startAngle
Where we subtract the scrollx to have a centered mouse result in no rotation. Factor is basically how fast the rotations come from the mouse position. And startAngle is where you want to start rotating from.
That was for calculating an angle from mouse.x in an absolute way. You can do it relatively too.
Var startX=0
On touch start
— set startX to touch.x
Is touching
— add touch.x-startX