Hi All,
Could someone very kindly help with a script example of how to get the +- 0 to 45 degree angle (CW & CCW) of a mc and then use that value to control the angle of a second mc?
Many thanks
Groveman
Printable View
Hi All,
Could someone very kindly help with a script example of how to get the +- 0 to 45 degree angle (CW & CCW) of a mc and then use that value to control the angle of a second mc?
Many thanks
Groveman
Use rotation, for example
trace(myClip.rotation);
//Then you create a variable:
var clipRot:Number = myClip.rotation;
//Use an if statement to narrow the rotation to 0-45
If(clipRot > 0 && clipRot <= 45)
{
//then apply the rotation
myotherClip.rotation = clipRot;
}