Pause Function V2 by rbytes
Sometimes you want the user to be
able to interrupt a PAUSE.
How do you do that when other commands
are not executed during a pause? The wait
function uses multiple pauses to create
the desired pause, so the user can exit
early by pressing the "wake" button.
Only the blue code is needed. If your program
already gets the screen size elsewhere, that
line can also be eliminated.
get screen size sw,sh
button "go" text "" at .sw/2-50,200
do slowdown ! z+=1
until z>waiter or button_pressed("go")
button "go" delete
1 post • Page 1 of 1