Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » Variable doesn't hide/show when it is rapidly changing
- ULtimat306
-
Scratcher
9 posts
Variable doesn't hide/show when it is rapidly changing
If you create a script like this -

BUG
when green flag clickedAnd then try to hide/show to variable using the check box, it just doesn't let you sometimes.
forever
set [variable v] to (pick random (0) to (100))

BUG
- HollyEuca
-
Scratcher
100+ posts
Variable doesn't hide/show when it is rapidly changing
This glitch is likely due to a high volume of requests being implemented on the server.
You can easily fix this with a wait 0 seconds block.
Here is an example.
The wait 0 seconds block gives it a very, very short pause (so short that the viewer will not be able to tell) to allow it to process the current commands and carry them out.
Hope this helped : )
You can easily fix this with a wait 0 seconds block.
Here is an example.
when green flag clicked
forever
show variable [v v]
wait (0) secs
set [v v] to (pick random (1) to (100))
hide variable [v v]
end
The wait 0 seconds block gives it a very, very short pause (so short that the viewer will not be able to tell) to allow it to process the current commands and carry them out.
Hope this helped : )
Last edited by HollyEuca (Nov. 14, 2025 03:50:34)
- Discussion Forums
- » Bugs and Glitches
-
» Variable doesn't hide/show when it is rapidly changing

