# Forced Mouse Position

**URL:** https://forum.kirupa.com/t/forced-mouse-position/52607
**Category:** flash
**Created:** [May 25, 2004, 6:16pm UTC](https://forum.kirupa.com/t/forced-mouse-position/52607 "2004-05-25T18:16:40Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Blenderben](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blenderben/32/74_2.png) [@Blenderben](https://forum.kirupa.com/u/Blenderben)
#### Post date: [May 25, 2004, 6:16pm UTC](https://forum.kirupa.com/t/forced-mouse-position/52607/1 "2004-05-25T18:16:40Z")

</div>

I am making a game and a ship I made is suppose to follow your mouse position. After each new level, just as the new stage loads, the ship moves to the position of the mouse, which may be off the screen and force the ship to crash into something. Is there any way i can force the \_xmouse and \_ymouse to stay somewhere? like perse in the middle of the screen or something?

i’ve tried

\_xmouse = 400;  
\_ymouse = 300;

but that obviously doesn’t work.
