# \[AS2\] - help duplicated clip following duplicated clip following duplicated clip

**URL:** <https://forum.kirupa.com/t/as2-help-duplicated-clip-following-duplicated-clip-following-duplicated-clip/304674>\
**Category:** Uncategorized\
**Created:** [February 11, 2010, 5:06pm UTC](https://forum.kirupa.com/t/as2-help-duplicated-clip-following-duplicated-clip-following-duplicated-clip/304674 "2010-02-11T17:06:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweetblanca](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@sweetblanca](https://forum.kirupa.com/u/sweetblanca)\
**Post date:** [February 11, 2010, 5:06pm UTC](https://forum.kirupa.com/t/as2-help-duplicated-clip-following-duplicated-clip-following-duplicated-clip/304674/1 "2010-02-11T17:06:54Z")

</div>

I’ve been trying to do this the whole day to no success so i needed help  
I wanted to make a duplicated clip to follow another duplicated clip  
like star1 is followed by star2 which is followed by star3 and so on…

my actionscript is as follow

```auto
 
onClipEvent(enterFrame){
 _parent.star1._x += (_parent.star0._x - _parent.star1._x)/ 5;
 _parent.star1._y += (_parent.star0._y - _parent.star1._y)/ 5;
 for(i=2;i<20;i++){
  j = i - 1;
  duplicateMovieClip(_parent.star1,newname="star"+i,i);
  _parent["star"+i]._x += (_parent["star"+j]._x - _parent["star"+i]._x)/ 5;
  _parent["star"+i]._y += (_parent["star"+j]._y - _parent["star"+i]._y)/ 5;
 }
}

```

this code only gets me all the duplicated star overlaped in 1 spot following only star0. How can i fix this?
