# Detect and follow another object

**URL:** <https://forum.kirupa.com/t/detect-and-follow-another-object/2899>\
**Category:** Uncategorized\
**Created:** [March 13, 2002, 12:07am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899 "2002-03-13T00:07:26Z")\
**Posts on this page:** 11\
**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:** [March 13, 2002, 12:07am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/1 "2002-03-13T00:07:26Z")

</div>

I need someone to help me with this… \r1. Need to be able to allow movie\_clip2 to detect movie\_clip1\r2. Allow movie\_clip2 to follow movie\_clip1 only in the \_y axis\r\rthis is all i need help with for now !! but i would like anyone to suggest a better method if possible. \r\rcheers !!!

---

<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:** [March 13, 2002, 12:12am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/2 "2002-03-13T00:12:44Z")

</div>

What do you mean, detect ??\rI believe Sinfiniti make a fla that looks like what you want. It’s a thread called Magnetic Branches.\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:** [March 13, 2002, 6:21am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/3 "2002-03-13T06:21:14Z")

</div>

hmm… I was thinking that this person was refering to something a little different.\r\rTry this. Select movie\_clip2 and enter this script in the action panel.\r\ronClipEvent(enterFrame){\rthis.\_y=\_root.movie\_clip1.\_y;\r}\r\rof course this is, if movie\_clip1 is on the main timeline, and if it has an “INSTANCE” name of movie\_clip1, as opposed to a library name of movie\_clip1.

---

<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:** [March 13, 2002, 10:53pm UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/4 "2002-03-13T22:53:11Z")

</div>

Thanx guys, all i need to know now is how to after i have made the the movie\_clip2 follow the movie\_clip1 now, but i want to know to make it go slower than the movie\_clip1 ?? thanx for ur help guys … \r\rcheers

---

<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:** [March 13, 2002, 11:00pm UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/5 "2002-03-13T23:00:19Z")

</div>

divide the second half of that statement by 2?

---

<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:** [March 14, 2002, 12:55am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/6 "2002-03-14T00:55:48Z")

</div>

Slower like what ??\rAnd don’t listen to Jubba, he’s not Jubba and he’s tired. Put that code instead :

```auto
 onClipEvent(enterFrame) {\r\r _y += (_root.movie_clip1._y - _y)/7 ;\r\r}

```

I hope you’ll trust me and not Jubba. And not ‘Not Jubba’, I mean. Dammit !\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:** [March 14, 2002, 1:06am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/7 "2002-03-14T01:06:54Z")

</div>

lol thanks pom. yeah i need to stop giving people the wrong answers. once i have flash back i will stop because i will test the things before i post them.

---

<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:** [March 14, 2002, 5:48am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/8 "2002-03-14T05:48:10Z")

</div>

hehe ok… thanks all … i’ll will be back if i have a probelm soon =) \r\rcheers again for the help !!

---

<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:** [March 14, 2002, 6:16am UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/9 "2002-03-14T06:16:23Z")

</div>

We appreciate attempts anyway Jubbaisdead… don’t let Pom get to you… he just thinks he’s top s@$t cause he’s a mod now. 😉

---

<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:** [March 14, 2002, 4:09pm UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/10 "2002-03-14T16:09:22Z")

</div>

Yeah, well i was actually asking when I posted in response to that. POM DID YOU SEE THE ? AT THE END OF THE SENTENCE? That means the sentence is a question. I’m pretty sure its the same way in France;) j/k 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:** [March 14, 2002, 10:09pm UTC](https://forum.kirupa.com/t/detect-and-follow-another-object/2899/11 "2002-03-14T22:09:46Z")

</div>

Ok, so next you’re gonna try to explain me that it was a socratic question, and that you were simply trying to make a point, and that nobody noticed ?? Is that it ?? (see ? I know ?'s 😃 )\r\rpom 0]
