hmm, still wont work, ok, let me explain the things to you
here the code to call the function
for b=1 to 4
button(btext$(b),bux(b),buy(b),1,2,3)
next b
and here is the actual function
function button(btext$(b),bux(b),buy(b),i1,i2,i3)
sprite i1,bux(b),buy(b),i1
sprite i2,bux(b),buy(b),i2
sprite i3,bux(b),buy(b),i3
show sprite i1
if mousex()>bux(b) and mousex()<bux(b)+73 and mousey()>buy(b) and mousey()<buy(b)+21 then pressed=1 : hide sprite i1 : show sprite i2 else pressed=0 : hide sprite i2 : show sprite i1
if pressed=1 and mouseclick()=1 show sprite i3 : hide sprite i1 : hide sprite i2
ink rgb(0,0,0),255
set text font "tahoma"
set text size 12
center text bux(b)+36.5,buy(b)+3,btext$(b)
endfunction pressed
btext$(?) - text for sprite
bux(?) / buy(?) - positions
i1 / i2 /i3 - images for sprites, the not the actual sprites themselves,
but it still doesnt work, it just says "function declaration has unknown parameter", and i cant see it...
i think its cause im using arrays in the function..
Your signature has been erased by a mod because it's larger than 600x120...