onClipEvent (load) {
speed = 0
xspeed = 0
yspeed = 0
acceleration = Number(_root.saccel)
turnfriction = Number(10 - _root.shand)
maxspeed = 0
topspeed = Number(_root.sspeed/4)
}
onClipEvent (enterFrame) {
maxspeed = topspeed
_x += xspeed
_y += yspeed
if(Key.isDown(Key.UP)){speed += acceleration}
if(Key.isDown(Key.DOWN)){if(speed > 0){speed -= acceleration}}
if(speed >0){speed -= acceleration/2}
if(speed <0){speed += acceleration/2}
if(Key.isDown(Key.LEFT)){_rotation -= speed/turnfriction}
if(Key.isDown(Key.RIGHT)){_rotation += speed/turnfriction}
if(speed > maxspeed){speed = maxspeed}
xspeed = speed*Math.cos((_rotation)*Math.PI/180);
yspeed = speed*Math.sin((_rotation)*Math.PI/180);
}
NO encuentro el error,,,no se mueve