Just like zircher said...
Quote: "Each loop check for a mouse click. If the mouse is clicked get the location of the mouse and compare that with the location and size of the button. If the mouse is inside the button location, perform whatever action you want the button to do."
If mouseclick()=1
If mouseX()+[ButtonXSize/2] > [ButtonXPosition] and mouseX()-[ButtonXSize/2] < [ButtonXPosition]
If mouseY()+[ButtonYSize/2] > [ButtonYPosition] and mouseY()-[ButtonYSize/2] < [ButtonYPosition]
[button clicked code]
Endif
Endif
Endif
The X and Y Positions refer to the center of the button...
well... I hope I helped...
Previously known as "Game_Creator".
The question is, why am I talking to myself? ...... And more importantly, why am I waiting for a reply?