Ok, here it comes...
Sorry, it isn't small.
In fact, it worked properly until I used a sprite command in my main loop.
gosub interface
do
sprite 1100,mousex(),mousey(),1100
sync
loop
interface:
cd "interface"
load bitmap "players.bmp",1
get image 500,0,0,75,100
delete bitmap 1
sprite 1,0,0,500
sprite 2,settings_xres-75,0,500
cd settings_language$
rem loading images
a=0
for t=1 to 10
if t=1 then button$="wachten"
if t=2 then button$="pas"
if t=3 then button$="vragen"
if t=4 then button$="meegaan"
if t=5 then button$="alleen"
if t=6 then button$="ambondance"
if t=7 then button$="soloslim"
if t=8 then button$="kleinemiserie"
if t=9 then button$="grotemiserie"
if t=10 then button$="miserieoptafel"
for u=1 to 3
inc a
load bitmap button$+str$(u-1)+".bmp",1
get image 999+a,0,0,250,50
delete bitmap 1
next u
next t
rem loading and positioning button sprites
rem default state
for t=0 to 27 step 3
if t<13
sprite 1000+t,(settings_xres/2)-250,(((settings_yres+100)/2)-125)+((t/3)*50),1000+t
else
sprite 1000+t,settings_xres/2,(((settings_yres+100)/2)-125)+(((t-13)/3)*50),1000+t
endif
wait 10
next t
rem over state
for t=0 to 28 step 3
if t<13
sprite 1000+t+1,(settings_xres/2)-250,(((settings_yres+100)/2)-125)+((t/3)*50),1000+t+1
else
sprite 1000+t+1,settings_xres/2,(((settings_yres+100)/2)-125)+(((t-13)/3)*50),1000+t+1
endif
wait 10
next t
rem unable state
for t=0 to 29 step 3
if t<13
sprite 1000+t+2,(settings_xres/2)-250,(((settings_yres+100)/2)-125)+((t/3)*50),1000+t+2
else
sprite 1000+t+2,settings_xres/2,(((settings_yres+100)/2)-125)+(((t-13)/3)*50),1000+t+2
endif
wait 10
next t
rem mouse object for collision detection with buttons
create bitmap 1,1,1
get image 1100,0,0,1,1
return