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

9 lines
370 B
Plaintext

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