2 Replies Latest reply on Dec 8, 2008 8:48 AM by FunkyGibber

    help with rotating MC needed...shouldn't be too difficult

    FunkyGibber
      Hi all,

      I've managed to get most of the code working fine, just need help finishing it off.

      I have a MC rotate depending how far right or left the cursor is. Here is the code...

      onEnterFrame = update;

      function update():Void
      {
      worldMC._rotation += ( Stage.width / 2 - _xmouse ) / 400;
      }

      WorldMC being the name of the MC. It works like a charm, but I need the MC to stop rotating after it rotates a certain amount (eg 45 degrees). Could somone help me with this...my whole project relies on this working. Just ask if you need any more details.

      Thanks!