# Make movieclip B follow x-coordinate of movieclip A

**URL:** <https://forum.kirupa.com/t/make-movieclip-b-follow-x-coordinate-of-movieclip-a/315883>\
**Category:** flash\
**Created:** [November 6, 2010, 8:50pm UTC](https://forum.kirupa.com/t/make-movieclip-b-follow-x-coordinate-of-movieclip-a/315883 "2010-11-06T20:50:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tracenewbie](https://avatars.discourse-cdn.com/v4/letter/t/6de8d8/32.png) [@tracenewbie](https://forum.kirupa.com/u/tracenewbie)\
**Post date:** [November 6, 2010, 8:50pm UTC](https://forum.kirupa.com/t/make-movieclip-b-follow-x-coordinate-of-movieclip-a/315883/1 "2010-11-06T20:50:42Z")

</div>

Could someone give me advice on how to do this?

**This is what I want to do:**

```auto
//We have movieclip A and B
--------------------**
-----------------------
-------[A]-------------

//B is moving left, want to follow A's y-coordinate.
--------------<-**---
-----------------------
-------[A]-------------

//B getting closer to A
--------------<-**---
 -----------------------
 -------[A]-------------

//A shaking off B
-------[A]-------------
-----------------------
 -<-**-----------------

//B still following the y-coordinate of A
-<-**-----[A]---------
-----------------------
 -----------------------

```
