Discuss Scratch

XnneoScratch
Scratcher
3 posts

"wait for ( ) seconds or until <>" block

it pretty much self-explainatory. this block would be really useful for a multitude of reasons.
wait () seconds or until <>
Malicondi
Scratcher
1000+ posts

"wait for ( ) seconds or until <>" block

XnneoScratch wrote:

it pretty much self-explainatory. this block would be really useful for a multitude of reasons.
wait () seconds or until <>
workaround thats not really hard to do
reset timer
repeat until <<(time) > (your length)> or <your condition here ::sensing>>
set [time v] to (timer ::sensing)
end
kinda long but still possible

Last edited by Malicondi (Feb. 17, 2024 00:37:44)

among_us1w2
Scratcher
1000+ posts

"wait for ( ) seconds or until <>" block

Malicondi wrote:

XnneoScratch wrote:

it pretty much self-explainatory. this block would be really useful for a multitude of reasons.
wait () seconds or until <>
workaround thats not really hard to do
reset timer
repeat until <<(time) > (your length)> or <your condition here ::sensing>>
set [time v] to (timer ::sensing)
end
kinda long but still possible
if you were already using timer just use
set [timer v] to [0]
and in a seperate
when green flag clicked
forever
wait (0.01) secs
change [timer v] by [0.01]end
so no support
0penCode
Scratcher
7 posts

"wait for ( ) seconds or until <>" block

wait until <(desired time) < (timer)>

This is an easy and efficient way to perform the script you asked, a clean line.

Last edited by 0penCode (Feb. 17, 2024 04:09:56)

wilhelm43
Scratcher
1000+ posts

"wait for ( ) seconds or until <>" block

#3 - At each loop step you get more and more you lose precision.
As a clean workaround you can use the (days since 2000) block and timestamp but it's a bit hard to understand it

So support
Aaliyah_Newlands
Scratcher
500+ posts

"wait for ( ) seconds or until <>" block

XnneoScratch wrote:

it pretty much self-explainatory. this block would be really useful for a multitude of reasons.
wait () seconds or until <>
It is simple, but there is an alternative to create the same code. It's longer but it still exists making a block like this would mean people would have less of a real challenge to crate the same code with a different look.

Powered by DjangoBB