flash mouse easing

Out of context: Reply #20

  • Started
  • Last post
  • 20 Responses
  • monNom0

    hmmm, i dont know why I thought the topic title was "flash mouse eating"... i was so let down.

    but yeah, something to the effect of

    onClipEvent (enterFrame){
    rate = 6;// speed
    centre = 300;//centre point
    this._x += (_root._xmouse - centre)/rate;
    }

    or something to that effect... they're better when they have a small gap between moving... say 20 - 30 px so you can catch the menu

    PS. that code was written right now and is probably buggy as hell.

View thread