1 Reply Latest reply on Mar 9, 2015 7:35 PM by kglad

    Object FollowerI


      I am making a flash game using actionscript 2 and need a symbol to 'follow' another on the y axis.

      I have used this code

      onClipEvent (load) {

        _y = 0;

        speed = 5;


      onClipEvent (enterFrame) {

        endY = _root._ymouse;

        _y += (endY-_y)/speed;


      But am unsure how to change it so it follow the other symbol (instance name: head) rather than the mouse.