I guess the topic name says it all. I need to make it so that the mouse pointer won't be able to go outside the borders of the play frame. I want the game to be able to run in both full screen and normal resolution. how can I do this?
Printable View
I guess the topic name says it all. I need to make it so that the mouse pointer won't be able to go outside the borders of the play frame. I want the game to be able to run in both full screen and normal resolution. how can I do this?
Depending on your game you can use the Mouse Movement as an easy solution.
Another way is using the mouse object from the bonus pack. It allows to check the mouse coordinates and you can reposition the mouse once it's outside the playfield. It requires to convert screen coordinates into MMF coordinates, making things a little more complicated.