Discuss Scratch
- Discussion Forums
- » Suggestions
- » Wait () Seconds Until
- Turtsles
-
Scratcher
58 posts
Wait () Seconds Until
I made this image using photoshop and I think it is a good idea.
If you add a 3rd notch to the

If you add a 3rd notch to the
wait () secsblock and then have an until block with one notch to the left (as shown in the image) it could result in waiting for 1 second and it stop waiting if the unless happens or has happened. I know that there is a workaround, but this is just much simpler and takes less blocks.
- musicROCKS013
-
Scratcher
1000+ posts
Wait () Seconds Until
The workaround isn’t that hard…
Workaround:
Workaround:
reset timer
wait until <<(timer) > []> or <>>
Last edited by musicROCKS013 (May 30, 2022 19:56:40)
- Conduit7
-
Scratcher
100+ posts
Wait () Seconds Until
support, i can see how this could be useful… assuming i understand you correctly
- Za-Chary
-
Scratcher
1000+ posts
Wait () Seconds Until
I believe @musicROCKS013 has a workaround that describes what you are looking for. However, there is a problem with the way the block is currently worded. Some people may read it and think it means “Wait 1 second, unless something is happening, then don't wait any period of time. That is, only wait the full 1 second if something doesn't happen, and otherwise wait the full second.” A workaround for this description of “wait 1 second unless key space pressed” would be the following:
I don't think this is what you want the block to do. To prevent confusion from other users, I think you might want to think of another name for the block.
if <not <key [space v] pressed?>> then
wait (1) secs
end
I don't think this is what you want the block to do. To prevent confusion from other users, I think you might want to think of another name for the block.
- hjdkjmjdsjokdskik
-
New Scratcher
4 posts
Wait () Seconds Until
like this no workaround
wait () secs until <> ::control
- musicROCKS013
-
Scratcher
1000+ posts
Wait () Seconds Until
like this no workaroundWdym?wait () secs until <> ::control
Last edited by musicROCKS013 (May 31, 2022 02:21:04)
- Discussion Forums
- » Suggestions
-
» Wait () Seconds Until