From Test-Scratch-Wiki
![]() |
It has been suggested that this page's contents be merged with the page Action After Stop. You can discuss this on the page's talk page. |
Using the timer, users can detect when the stop sign is clicked because clicking the stop sign does not stop the timer.
Detecting the stop sign
Users can detect the stop sign with these scripts. A variable needs to be created. In this example, it's called "test variable"
when green flag clicked forever set [test variable v] to ((timer) + (0.5)) end when [timer v] > (test variable) broadcast [Stop Sign Clicked v]
When the stop sign is clicked, "Stop Sign Clicked" will be broadcasted.