I CANT GET THIS SLOPE FORMULA TO WORK WITH THE DUPLICATE MOVIE CLIP. I NEED IT TO SHOOT AND THE POINT THAT MY SHIP IS POINTED BUT I CANT FIGURE IT OUT. HERES THE SLOPE CODE FOR MY SHIP AND IM USING FLASH MX
if (Key.isDown(Key.UP)){
speed = 15;
if (slopeship._rotation < 0) {
if (slopeship._rotation < -90){
mod = (slopeship._rotation+90) / -90;
slopeship._x-=speed*(1-mod);
slopeship._y+=speedmod;
} else {
mod = slopeship._rotation / -90;
slopeship._x-=speedmod;
slopeship._y-=speed*(1-mod);
}
} else {
if (slopeship._rotation > 90){
mod = (slopeship._rotation-90) / 90;
slopeship._x+=speed*(1-mod);
slopeship._y+=speed*mod;
} else {
mod = slopeship._rotation / 90;
slopeship._x+=speed*mod;
slopeship._y-=speed*(1-mod);
}
}
}
if (Key.isDown(Key.RIGHT)){
turnSped = 10;
_root.slopeship._rotation+=turnSped;
}
if (Key.isDown(Key.LEFT)){
turnSped = 10;
_root.slopeship._rotation-=turnSped;
}