Thread: RC Plane Script
View Single Post
  #8  
Old 08-31-2011, 08:11 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Some feedback:

Style your scripts,

PHP Code:
hideimg(1);
hideimg(2);
hideimg(3); 
should in my oppinion be
PHP Code:
hideimgs(1,3); 
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
__________________
MEEP!
Reply With Quote