RosettaCodeData/Task/Simple-windowed-application/Scratch/simple-windowed-application.scratch

9 lines
370 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
when flag clicked # when program is run
set counter to "0" # initialize counter object to zero
set message to "There have been no clicks"
show variable message # show the message object
when this sprite clicked # when button clicked
hide message # hide the initial message
change counter by 1 # increment the counter object