Code:nomainwin
open "Demo" for graphics_nsb as #main
#main, "trapclose [close]"
#main,"when leftButtonDown [drwagain]"
#main,"when leftButtonUp [undrwagain]"
#main, "down; fill blue; up; flush"
wait
[close]
close #main
end
[drwagain]
#main, "down; fill red; up; flush"
wait
[undrwagain]
#main, "down; fill blue; up; flush"
wait
This was asked by Darin (narutogamer) but with Bmps. It is to my knowlage he knows sprites commands so I am giving a small demo.
Nicholas.