Page 1 of 1

Newbie asks: Get MousePosition and also when Mouse click

PostPosted: Mon Apr 16, 2012 9:29 pm
by ggesterGamePro99
Basically.

1How do you get the position of the mouse at any moment.

2And how do you set the position of the mouse at any moment?. Like if you want the computer to trick the user and move his mouse to parts where he doesn't want.

3. And How do you get the position of the mouse when clicked so that you find out if a player clicked the Start screen or Selection screen at specific buttons or specific text or if it's within a game that uses the mouse, to check if the user clicked some specific area or point or object within the screen.

Re: Newbie asks: Get MousePosition and also when Mouse click

PostPosted: Mon Apr 16, 2012 9:49 pm
by phyzix5761
1. xmouse and ymouse are built in variables that hold the x and y of the mouse at all times.

2. As far as I know you can't. :(

3. in the "mouse button down" event you can set two variables to hold the xmouse and ymouse.

Re: Newbie asks: Get MousePosition and also when Mouse click

PostPosted: Mon Apr 16, 2012 10:02 pm
by ggesterGamePro99
phyzix5761 wrote:1. xmouse and ymouse are built in variables that hold the x and y of the mouse at all times.

2. As far as I know you can't. :(

3. in the "mouse button down" event you can set two variables to hold the xmouse and ymouse.



Thanks alot, awesome.