Discuss Scratch
- Discussion Forums
- » Suggestions
- » making wait for second blocks have options!
- Crow_Boy08
-
1000+ posts
making wait for second blocks have options!
Here's what i mean: the second block is just a second block so here is an example:
because this would be great for getting achievements in games or having something unexpected in a project
thanks for uhhhhhhhhhhhhhhhhhhhhhhhh
reading this
2.5 people support this topic. one person semi supported so thats why its 2.5
So there needs to be more options with second blocks
wait () [minutes v]:: control
wait () [hours v]:: control
because this would be great for getting achievements in games or having something unexpected in a project
thanks for uhhhhhhhhhhhhhhhhhhhhhhhh
reading this
2.5 people support this topic. one person semi supported so thats why its 2.5
Last edited by Crow_Boy08 (Feb. 23, 2022 22:11:21)
- RL1123
-
1000+ posts
making wait for second blocks have options!
You can still use the wait seconds block with some basic maths to wait for a set number of minutes or hours.
wait ((minutes) * (60)) secsHowever, I really doubt that someone would be dedicated enough to play a game for an hour straight, most people's attention spans aren't that long.
wait ((hours) * (3600)) secs
Last edited by RL1123 (Feb. 20, 2022 22:22:18)
- lolecksdeehaha
-
1000+ posts
making wait for second blocks have options!
Sorry, no support. The workaround is extremely easy:
define wait (amount) (hours/minutes)
if <(hours/minutes)=(hours)> then
wait (((amount)*(60))*(60)) secs
else
wait ((amount)*(60)) secs
end
- Crow_Boy08
-
1000+ posts
making wait for second blocks have options!
yeah but what if new scratchers don't know it and they don't know how to use custommblocks Sorry, no support. The workaround is extremely easy:define wait (amount) (hours/minutes)
if <(hours/minutes)=(hours)> then
wait (((amount)*(60))*(60)) secs
else
wait ((amount)*(60)) secs
end
- RL1123
-
1000+ posts
making wait for second blocks have options!
Then they can use the workarounds in post #2. yeah but what if new scratchers don't know it and they don't know how to use custommblocks
- lolecksdeehaha
-
1000+ posts
making wait for second blocks have options!
Then they can take the basic knowledge that 1 minute = 60 seconds and the basic knowledge that 1 hour = 60 minutes.~snip~yeah but what if new scratchers don't know it and they don't know how to use custommblocks
wait (60) secs // if you (somehow) didn't know, this is waiting for a minute
- Myst--
-
100+ posts
making wait for second blocks have options!
No support. Just make a variable!
- Crow_Boy08
-
1000+ posts
making wait for second blocks have options!
yeah i was going to say yeah you can do it with variables but i scrapped the text No support. Just make a variable!
- Crow_Boy08
-
1000+ posts
making wait for second blocks have options!
ok guys thanks for your workarounds!
- k0d3rrr
-
1000+ posts
making wait for second blocks have options!
The workarounds (mostly) don't work because of the 1/200 second delay that scripts have on Scratch, so, support!
Also, here's what the blocks should look like.
Also, here's what the blocks should look like.
wait (3) [seconds v]:: control // Results in three seconds.
wait (5) [minutes v]:: control // Results in five minutes.
wait (0.25) [hours v]:: control // Results in fifteen minutes.
- VedanshS933
-
1000+ posts
making wait for second blocks have options!
The workarounds (mostly) don't work because of the 1/200 second delay that scripts have on Scratch, so, support!
Also, here's what the blocks should look like.wait (3) [seconds v]:: control // Results in three seconds.
wait (5) [minutes v]:: control // Results in five minutes.
wait (0.25) [hours v]:: control // Results in fifteen minutes.
The easiest workaround
wait (60) secs // for minutes
Do basic maths and type the answer. That's simple. Isnt it that the Scratch Editor works on Second and not Minutes and Hours? And who the heck would need to put 2 hours? Semi Support.
Scratch On!
Last edited by VedanshS933 (Feb. 21, 2022 11:45:29)
- DinoMaster20
-
1000+ posts
making wait for second blocks have options!
(#4)Scratch isn't about going the easiest way, it about learning. You could also just useyeah but what if new scratchers don't know it and they don't know how to use custommblocks Sorry, no support. The workaround is extremely easy:define wait (amount) (hours/minutes)
if <(hours/minutes)=(hours)> then
wait (((amount)*(60))*(60)) secs
else
wait ((amount)*(60)) secs
end
wait (60) secsor
wait (3600) secsThough, I'm sure we don't need to wait for this long anyway. Why would you possibly need to do something for that long?
- lolecksdeehaha
-
1000+ posts
making wait for second blocks have options!
But… with longer blocks, wouldn't it be the same delay? This is literally how scripts on Scratch work, regardless of the hacky implementation (by the ST) of the blocks. The workarounds (mostly) don't work because of the 1/200 second delay that scripts have on Scratch, so, support!
Also, here's what the blocks should look like.wait (3) [seconds v]:: control // Results in three seconds.
wait (5) [minutes v]:: control // Results in five minutes.
wait (0.25) [hours v]:: control // Results in fifteen minutes.
- RL1123
-
1000+ posts
making wait for second blocks have options!
Source for the amount of delay? The workarounds (mostly) don't work because of the 1/200 second delay that scripts have on Scratch, so, support!
- lolecksdeehaha
-
1000+ posts
making wait for second blocks have options!
Scratch's crappy interpreting system.Source for the amount of delay? The workarounds (mostly) don't work because of the 1/200 second delay that scripts have on Scratch, so, support!
Also, I don't get why they're mentioning that. It'll be the same for the wait for minute/hour blocks.
- ideapad-320
-
1000+ posts
making wait for second blocks have options!
Support!
“SIMPLE” workaround: Sorry, no support. The workaround is extremely easy:define wait (amount) (hours/minutes)
if <(hours/minutes)=(hours)> then
wait (((amount)*(60))*(60)) secs
else
wait ((amount)*(60)) secs
end
define wait (number) (period)also 1/200 sec delay:
if <<(period) = [milliseconds]> or <(period) = [millisec]>> then
wait ((number)/(1000)) secs
else
if <(period) = [frames]> then
wait ((number)/(30)) secs
else
if <(period) = [10th-seconds]> then
wait ((number)/(10)) secs
else
if <<(period) = [min]> or <(period) = [minutes]>> then
wait ((number)*(60)) secs
else
if <<(period) = [hour]> or <(period) = [hr]>> then
wait ((number)*(3600)) secs
else
wait (number) secs
end
end
end
end
end
And i would like to ask you HOW? The workarounds (mostly) don't work because of the 1/200 second delay that scripts have on Scratch, so, support!
Also, here's what the blocks should look like.wait (3) [seconds v]:: control // Results in three seconds.
wait (5) [minutes v]:: control // Results in five minutes.
wait (0.25) [hours v]:: control // Results in fifteen minutes.
Its like saying “Use blocks” No support. Just make a variable!
- lolecksdeehaha
-
1000+ posts
making wait for second blocks have options!
But, it's are you literally going to use those all at the same time? Also, Scratch wait blocks are really bad at milliseconds. Support!“SIMPLE” workaround: Sorry, no support. The workaround is extremely easy:define wait (amount) (hours/minutes)
if <(hours/minutes)=(hours)> then
wait (((amount)*(60))*(60)) secs
else
wait ((amount)*(60)) secs
end
~snip~
also 1/200 sec delay:And i would like to ask you HOW? The workarounds (mostly) don't work because of the 1/200 second delay that scripts have on Scratch, so, support!
Also, here's what the blocks should look like.wait (3) [seconds v]:: control // Results in three seconds.
wait (5) [minutes v]:: control // Results in five minutes.
wait (0.25) [hours v]:: control // Results in fifteen minutes.Its like saying “Use blocks” No support. Just make a variable!
on a side note, do you know about decimal points?
- Discussion Forums
- » Suggestions
-
» making wait for second blocks have options!