making what i call a touch button is simple, so you have your TOUCH OUT TX,TY
then you make a box, so set the start of the box x,y then the end.
here ill show you.
IF TX>50 AND TX<100 THEN
IF TY>50 AND TY<100 THEN
BEEP 5
ENDIF
ENDIF
so if you are in the area 50-100 x,y then you are touching it and it should beep.
hopefully you understand.
Could you try running the following program?
ACLS:XSCREEN 2,256,2
DISPLAY 1
SPSET 0,0:SPCOL 0
WHILE TRUE
SPOFS 0,RND(304),RND(224),0
WHILE TRUE
VSYNC 1,TOUCH OUT TT,TX,TY
IF SPHITRC(TX,TY,1,1)>=0 && TX==1 THEN
BEEP 5:BREAK
ENDIF
WEND
WEND