Some feedback:
Style your scripts,
PHP Code:
hideimg(1);
hideimg(2);
hideimg(3);
should in my oppinion be
for pressing the keys:
You should place the plane into a gani and use the following in your timeout
PHP Code:
for (a=0;a<4;a++) {
if (keydown(a)) {
this.x+=vecx(a)*0.5; //normal players speed. change the *# to any number you want the speed to be
this.y+=vecy(a)*0.5; //same
this.dir=k;
}
}
Didn“t test it but should work