# Mc moving according on mouse x and y coordinates

**URL:** https://forum.kirupa.com/t/mc-moving-according-on-mouse-x-and-y-coordinates/114775
**Category:** Uncategorized
**Created:** [July 1, 2004, 5:12pm UTC](https://forum.kirupa.com/t/mc-moving-according-on-mouse-x-and-y-coordinates/114775 "2004-07-01T17:12:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)
#### Post date: [July 1, 2004, 5:12pm UTC](https://forum.kirupa.com/t/mc-moving-according-on-mouse-x-and-y-coordinates/114775/1 "2004-07-01T17:12:35Z")

</div>

I´m trying to make a MC to change it´s x location according to the mouse position. Let´s say that the Mc moves to x=100 when the mouse\_x is \> 300 and y \< 200. and moves back when the mouse goes back.

thanks
