PHP Code:
function onTimeout() {
drawunderplayer();
this.boatX = x + 1.5;
this.boatY = y + 2;
this.boatW = getimgwidth("niromia_playerboat.gif")/16;
this.boatH = getimgheight("niromia_playerboat.gif")/16;
roatation = this.angle;
with (findimg(455)) {
stretchx = 0.5;
stretchy = 0.5;
x = thiso.boatX - thiso.boatW[0]/2;
y = thiso.boatY - thiso.boatH[0]/2;
image = "niromia_playerboat.gif";
layer = 0;
}
setTimer(0.05);
}
I made it so rotation equals this.angle. but it moves now just in the right direction, I messed and toyed with it and no luck _-_ I dont understand radicals and radtodeg doesnt help me