Hodgey is right and I can confirm that it's the second suggestion, ie +90
hide mouse
sync on
sync rate 60
`set display mode 800,600,32
`Load image "gra_bkg.jpg", 1
`Load image "guy.png", 2
`Load image "cursor.png", 3
`gra_bkg
box 0,0,10,10
get image 1, 0,0,10,10
cls
`guy
ink rgb(0,255,0),0
box 0,0,30,30
get image 2, 0,0,30,30
cls
`cursor
ink rgb(255,0,0),0
box 0,0,30,30
get image 3,0,0,30,30
ink rgb(255,255,255),0
sprite 1,0,0,1
sprite 2,400,300,2
sprite 3,0,0,3
offset sprite 2,15,15
offset sprite 3,15,15
do
sprite 3,mousex(),mousey(),3
angle=wrapvalue(atanfull(mousey()-sprite y(2),mousex()-sprite x(2))+90)
rotate sprite 2,angle
move sprite 2,1
sync
if keystate(1) = 1 then exit
loop
end
I've replaced the code where your loading images with just some boxes and modified the "angle" equation to add 90 degrees so you can just run the code.