Re: problem with the "mouse controlled" movement
It's because you're setting the object's coordinates, not *moving* to those coordinates with a movement. You can't "stop" because you're not moving.
If you want to lock the mouse cursor itself to inside your window you need to do that, say by using the "mouse movement", or one of several ways of locking the cursor to the window.
Re: problem with the "mouse controlled" movement
instead of always setting the position of the object to xmouse and ymouse, you could compare xmouse and ymouse to certain values, setting the object to move if the mouse is inside those coordinates.
Re: problem with the "mouse controlled" movement
Quote:
Originally Posted by kidz200
instead of always setting the position of the object to xmouse and ymouse, you could compare xmouse and ymouse to certain values, setting the object to move if the mouse is inside those coordinates.
This.