# Duplicate Movie Flash Mx

**URL:** <https://forum.kirupa.com/t/duplicate-movie-flash-mx/7093>\
**Category:** flash\
**Created:** [October 23, 2002, 5:41pm UTC](https://forum.kirupa.com/t/duplicate-movie-flash-mx/7093 "2002-10-23T17:41:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twalliewerty](https://avatars.discourse-cdn.com/v4/letter/t/aeb1de/32.png) [@twalliewerty](https://forum.kirupa.com/u/twalliewerty)\
**Post date:** [October 23, 2002, 5:41pm UTC](https://forum.kirupa.com/t/duplicate-movie-flash-mx/7093/1 "2002-10-23T17:41:01Z")

</div>

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+=speed_mod;  
} else {  
mod = slopeship.\_rotation / -90;  
slopeship.\_x-=speed_mod;  
slopeship.\_y-=speed\*(1-mod);  
}

```
} else {
	if (slopeship._rotation &gt; 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;  
}
