# Detect and follow an object?

**URL:** <https://forum.kirupa.com/t/detect-and-follow-an-object/2959>\
**Category:** Uncategorized\
**Created:** [February 27, 2002, 1:03am UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959 "2002-02-27T01:03:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 1:03am UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/1 "2002-02-27T01:03:38Z")

</div>

Hello flah masters, can you help me with this? I need to beable to detect and object or movie and allow another object/movie to follow that the first object/move but only moving up and down … not on the x-axis.\r\rCan anyone help me ??

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 8:16am UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/2 "2002-02-27T08:16:54Z")

</div>

I’m not sure I understand correctly. Do you want to make so that a clip follows the motion of another, but only in the \_y dimension ? Or detect whether a movie clip only moves along the y axis, and then make your movie clip move acordingly ?\rI did the first possibility.\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 5:51pm UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/3 "2002-02-27T17:51:17Z")

</div>

hey pom…how did you get that mc to only move up and down? did you use restrain to rectange? and wut did you put for your variables if you did?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 8:18pm UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/4 "2002-02-27T20:18:09Z")

</div>

Sure you want me to tell you ?? I think I’ll just answer your other questions.\rNo, I didn’t use restrain to a rectangle, since I don’t even know what that is.\rI didn’t put any variables, except the usual properties like \_y,… (I’m helping you now 😃 )\rIt’s always more simple than you think…\r\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 10:00pm UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/5 "2002-02-27T22:00:02Z")

</div>

gotcha thanks pom

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 10:10pm UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/6 "2002-02-27T22:10:04Z")

</div>

Happy to hear it !\rpom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 11:01pm UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/7 "2002-02-27T23:01:55Z")

</div>

Yes i want it to beable to detect the movie clip when it is moving up and down… yeah i think i want it to move only up and down the y-axis (\_y demensions) … like say a movieclip is moving around the screen, and on the side… movieclip2 moves only up and down. according to movieclip.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 27, 2002, 11:07pm UTC](https://forum.kirupa.com/t/detect-and-follow-an-object/2959/8 "2002-02-27T23:07:49Z")

</div>

Like in the movie I posted ??\rpom 0]
