the bad thing about sprites is that theyre limited.. here a function for my simple buttons
Function Button(button$,x,y,sx,sy)
mx=mousex() : my=mousey() : mc=mouseclick()
ink rgb(255,255,255),0 : box x,y,x+sx,y+sy
ink rgb(128,128,128),0 : box x+2,y+2,x+sx,y+sy
ink rgb(0,0,0),0 : box (x+sx)-2,y+2,x+sx,y+sy : box x+2,(y+sy)-2,x+sx,y+sy
if mx>x and mx<x+sx : if my>y and my<y+sy : if mc=1
ink rgb(0,0,0),0 : box x,y,x+sx,y+sy
ink rgb(100,100,100),0 : box x+2,y+2,x+sx,y+sy
ink rgb(255,255,255),0 : box (x+sx)-2,y+2,x+sx,y+sy : box x+2,(y+sy)-2,x+sx,y+sy
pressed=1
else
ink rgb(255,255,255),0 : box x,y,x+sx,y+sy
ink rgb(128,128,128),0 : box x+2,y+2,x+sx,y+sy
ink rgb(0,0,0),0 : box (x+sx)-2,y+2,x+sx,y+sy : box x+2,(y+sy)-2,x+sx,y+sy
pressed=0
endif : endif : endif
ink rgb(0,0,0),0 : center text x+(sx/2),(y+(sy/2))-10,button$
Endfunction Pressed
call it like: button("Text",position x,position y,scale x,scale y)