A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: drag + rotate [¿still puzzled?]

Threaded View

  1. #1
    Junior Member
    Join Date
    Aug 2000

    drag + rotate [¿still puzzled?]

    i am working on a "stickman". its legs and arms should be rotatable around its joints. it works with a script like that one:


    but, it has the sideffect that the rotatable part JUMPS to the mouseposition. it would be much nicer and more logic if the rotated object would keep a relative distance to the point from where the mouse drags it in circles. comparable to a simple drag-offset.

    hmm. after trying some trigonometry i gave up and searched the web, but couldn't find any answer.

    any experts around who could help me?

    fla is attached below

    merci ++

    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center