ok now i have done some more to the code and now it says that it cannot close nest... why is that here is the code:
`Settings
sync on : sync rate 60
backdrop off
set display mode 800,600,0
show window
`Load Media
load animation "cname.avi",1
load bitmap "sscreen.bmp",1
load bitmap "pscreen.bmp",2
set current bitmap 0
`cname.avi play
play animation 1,100,100
do
if animation playing(1)=0 then cls : gosub sscreen
sync
loop
`sscreen.bmp
sscreen:
copy bitmap 1,0
sync
`button1
if mousex()>=265 and mousex()<=485 and mousey()>=155 and mousey()<=245 and mouseclick()=1
cls : gosub pscreen
`pscreen
pscreen:
copy bitmap 2,0
sync
`if ending game
wait mouse : end[email][img][href]
Thomas