I need a script so that the level moves and not the player
(the player is a fully controlable top-down army tank with rotatable turret)
here is the script that moves the player:
//MOVEMENT CALCUALTIONS
speed*=decay;//natural slow down of speed
xSpeed = speedMath.sin(_rotation(Math.PI/180));
//use speed and Math top determine next X and Y coordinates to go to
ySpeed = speedMath.cos(_rotation(Math.PI/180));
_y -= ySpeed;//move accordingly
_x += xSpeed;
//INPUT
if(Key.isDown(Key.LEFT)){//Key press: Left Arrow
this._rotation-=manuverSpeed;//rotate based on maneuver speed
}else if(Key.isDown(Key.RIGHT)){//pupose of else to only allow rotating in one direction at a time
this._rotation+=manuverSpeed;
}
if(Key.isDown(Key.UP)){//pressing Up Arrow
if(speed<speedMax){speed+=accel};//if not going maximum speed allready, add some speed
}else if(Key.isDown(Key.DOWN)){
if(speed>-speedMax){speed-=accel};//or give some negative speed
}
Thankyou for any help given and credit will go to any one that has given help even if thier script does not work.