How can I make a sprite orbit the mouse? Had a nifty idea, although I'm stuck on how I can get this to work. I'm guessing it has to do with some clever maths? I tried messing around with the sin, cos and tan values of a variable and placing the sprite at the mouse's position +/- the value of that 'equation'. Something along the lines of:
setspriteposition ( moon , getpointerX () + sin (orbit) , getpointerY() - tan (orbit) )
I have a variable which I simple use like a form of 'for' loop in the do/loop:
inc orbit
if orbit > 360 then orbit = 1
I have attached a
VERY primitive picture showing what I want to acheive