Thanks mate, I can use this 
E: Boy, AGS sure makes simple things look complicated. Here's how I do this in Game Maker (adjusted for looks and minus line drawing)
No defining functions, anything
ft+= 4;
t+= 9;
r = 50 - t/50;
xoff = round(100 + sin(degtorad(ft))*r);
yoff = round(100 + cos(degtorad(ft))*r);
x = mouse_x + xoff;
y = mouse_y + yoff;

E: Boy, AGS sure makes simple things look complicated. Here's how I do this in Game Maker (adjusted for looks and minus line drawing)
No defining functions, anything
ft+= 4;
t+= 9;
r = 50 - t/50;
xoff = round(100 + sin(degtorad(ft))*r);
yoff = round(100 + cos(degtorad(ft))*r);
x = mouse_x + xoff;
y = mouse_y + yoff;