# New take on mousefollow with easing .... help

**URL:** <https://forum.kirupa.com/t/new-take-on-mousefollow-with-easing-help/20910>\
**Category:** Uncategorized\
**Created:** [May 14, 2003, 4:48pm UTC](https://forum.kirupa.com/t/new-take-on-mousefollow-with-easing-help/20910 "2003-05-14T16:48:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [May 14, 2003, 4:48pm UTC](https://forum.kirupa.com/t/new-take-on-mousefollow-with-easing-help/20910/1 "2003-05-14T16:48:33Z")

</div>

[http://www.kirupa.com/developer/mx/followease.htm](http://www.kirupa.com/developer/mx/followease.htm)  
there’s the old tutorial

here’s how i’m trying to spruce it up

```php

onEnterFrame = function () {
endX = _root._xmouse;
endY = _root._ymouse;
speed = 5;
for (i=0;i<18;i++) {
attachMovie("ball", "ball"+i, i {_x:((endX-(12*i))-_x)/speed, _y:((endY-(12*i))-_y)/speed});
}
};

```

the symbol ball is a 20x20 pixel circle with 20 percent transparency

i’m trying to create a worm like effect that follows the mouse

any help is appreciated
