OK, here is some basic coding in which I have defined an area on screen, in this case the "Start Game" area.
The code checks if the position of the cursor is within the limits of this area AND if the user clicks with the mouse, if all is true then the program goes on to the Start label.
The numbers for a and b in the IF line are the numbers representing X and Y coordinates, which will be shown in the topleft of your screen as a debugging feature.
SHOW MOUSE
LOAD IMAGE "main menu.bmp",1
SPRITE 1, 430, 240, 1
SET SPRITE 1, 1, 0
SHOW SPRITE 1
Rem Main Program Loop
DO
cls
a=mousex()
b=mousey()
print "X = ";a: print "Y = ";b
IF a > 477 AND a < 576 AND b > 300 AND b < 327 AND mouseclick() then goto Start
LOOP
Start:
DO
cls
print "This works!"
LOOP
Hope this helps?
Yskonyn -
"It's better to wish down here you were up, then to wish up there you were down."
"The ONLY time you have too much fuel on board is when you are on fire."