Could someone tell me how to rotate an image using the mouse please? I found a note saying that you could use ATAN2 to do this but I can only get it to allow rotation between 0 and 90 degrees, as in this text example:
Many thanks,
Tim
Graphics 800,600 SetColor 255,255,255 SetOrigin(GraphicsWidth()/2,GraphicsHeight()/2) HideMouse() Local varx : Float Repeat SetRotation ATan2(MouseY(),MouseX()) varx = GetRotation() DrawText "rotation = " + String(varx), 10,10 Flip Cls Until KeyHit(key_escape) = 1
Many thanks,
Tim