Checking mouse pos (Click button)
Posted: Tue Feb 10, 2009 2:14 pm
I did a quick search here on the forums and looked through the documentation. But I haven't found what I'm looking for. In the documentation, I saw only these commands:
But there is one thing that bugs me. Is there no way to check where the cursor is? I'm supposed to make a clickable button, but I need to check if the cursor is on the button. I'm sure this one is quite easy, but I'm a novice so go easy on me.
Please help this little guy out; will ya?
EDIT - Changed the Thread Title to make it fit the subject even more.
Code: Select all
getX( ) Gets the current x-position of the mouse.
getY( ) Gets the current y-position of the mouse.
getPosition( ) Gets the current position of the mouse.
setPosition( x, y ) Sets the current position of the mouse.
isDown( button ) Checks whether a certain button is down.
setVisible( visible ) Controls cursor visbility.
isVisible( ) Checks cursor visbility.
Please help this little guy out; will ya?
EDIT - Changed the Thread Title to make it fit the subject even more.