1 Reply Latest reply on Aug 28, 2007 1:03 PM by RGracia

    speed in relation to distance...

    lostinscript Level 1
      Hi,

      Is there a way i can make a movieclip speed up or slow down according to the distance between the mouse and the movieclip? I've made a friction effect for a movie clip (script 1) and i have a script to work out the distance between the mouse and the movieclip (script 2) but i cant seem to integrate the two...anyone done this? ...any help on this would be great...

      Thanks...
        • 1. Re: speed in relation to distance...
          RGracia
          This is probably more code than you need but someone here helped me create this scrolling area on a web site where images would scroll faster or slower depending on the position of the mouse relative to a defined rectangle area. I could email you the fla file so you see it in action.

          The code is this: