Hello.
I have a movieclip with this script on it:
Code:
onClipEvent (load) {

	speed = 20;
}
onClipEvent (enterFrame) {
	le_rotation= _root.Aircraft._rotation*-1;

	_rotation += (le_rotation-_rotation)/speed;
	
}
Basically, this will make my movieclip (Let's say "MC1") follow Aircraft...

The problem is... "Aircraft" will rotate more than 360 degrees...
So, MC1 will nicely follow "Aircraft", but at some point, it will rotate backwards!

I've decided to use: trace(Aircraft._rotation) and now I can see that MovieClip2 rotates from -180 to 180...
I was already able to fix that ("Aircraft" now rotates from 0 to 360!)
But that won't solve the problem, because once I get above 360, it will go back to 0

And MC1 is following this rotation with smooth/ease effect, so what happens is... when "Aircraft" goes back to 0, you can see MC2 rotating backwards all the way back to zero...

Can I change the script above, somehow, so it won't rotate back?

Thank you very much!




(Movieclip2 is keyboard controlled, it has speed, friction and other functions, which took me a long time to fine tune... it's an aircraft, it even has different rotation speed based on how fast you're flying, it "slides" more, depending on weather, and a lot of other nice details I've been adding... I'm just saying this because IF POSSIBLE i'd prefer not to touch these scripts and modify everything again... I'd rather just modify the script above... again, if possible...)