Another fun.
screen(320,240,0,"THEY LAUGH")
backcolor(0,0,0)
colorkey(0,0,0)
function sprite(id,x,y,w,h,fx)
drawimage(w*fx,0,w,h,x,y,id)
end
smy,h,x,y,z = 0,0,0,0,0
smy=loadimage("smy.bmp")
repeat
h=getkey()
cls()
for y=0,240,30 do
for x=0,320,30 do
sprite(smy,x,y,30,30,z)
end
end
z=z+1
if z==18 then
z=0
end
redraw()
wait (30)
until h==27
closewindow()