i have a small problem with this code:
SET DISPLAY MODE 640,480,32
hide mouse
sync on
LOAD BITMAP "plane.bmp", 1
GET IMAGE 1,50,0,100,50
LOAD BITMAP "back.bmp", 0
get image 2,0,0,256,256
repeat
sprite 1,170,90,1
if mouseclick()=1
rotate sprite 1,180
endif
if mouseclick()=2
rotate sprite 1,90
endif
sync
UNTIL ESCAPEKEY()=1
As i understand my own code i load up an image substract the part i need from it and place it in image 1 and make a sprite off it and place it in sprite 1. If i press left mouse button it should turn 180 degree and if i press button two it should turn 90 degree. All good so far it works but it doesn't turn anymore if i press the button a second time.If i press left and then right and then left again it goes back to the place where it was after i pressed left for the first time while it shouldn't rotate to that position.
Any ideas on this i bet simple problem