# Following the y coordinate only

**URL:** <https://forum.kirupa.com/t/following-the-y-coordinate-only/31691>\
**Category:** Uncategorized\
**Created:** [September 25, 2003, 9:06pm UTC](https://forum.kirupa.com/t/following-the-y-coordinate-only/31691 "2003-09-25T21:06:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Afro\_Ninja](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Afro\_Ninja](https://forum.kirupa.com/u/Afro_Ninja)\
**Post date:** [September 25, 2003, 9:06pm UTC](https://forum.kirupa.com/t/following-the-y-coordinate-only/31691/1 "2003-09-25T21:06:34Z")

</div>

It has to be simple… err ok. I have a rocket launcher. I know how to make it follow the mouse… but I only want it to follow the y coordinate. I need the x position to stay locked, so the launcher will only move up and down with the mouse.

so, simply thinking, I put this on the launcher:

[AS]onClipEvent (enterFrame)  
{  
this.\_y = \_ymouse  
}

[/AS]

when I preview the movie, it just dissapears

_sigh_ why?

after that I tried all kinds of things relating to stopping and start dragging, hit testing various movie clips, etc. and nothing works right.
