A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Mouse movement problem

  1. #1
    Junior Member
    Join Date
    Jul 2007
    Posts
    23

    Question Mouse movement problem

    the legoman keeps walking even though he is meant to be standing still, how could i fix this, is this a math problem or animation? also where i click doent correctly respond to the correct frame could it be a problem with this
    PHP Code:
    frameNbr Math.round(8+4*angle/Math.PI) % 1
    and how would i stop it from easing i have tried everything.

    thanks in advance
    Attached Files Attached Files

  2. #2
    Likes Pankakes
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    59
    put a stop actionscript on the first frame of the animation and have the animation played only while he is moving, you can test for that with boolean variables for example...for example it loops while he is moving, while a boolean variable's value is set to true...when he reaches his destination, the boolean variable evaluates to false, stopping the animation.

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