Discuss Scratch

TheAdriCoolManDude
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

No Support. It would cause problems, like this:

repeat for (2) seconds { 
wait (20) secs
} :: control


ScratchDiogoh
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

removed by ScatchDiogoh

Last edited by ScratchDiogoh (Sept. 11, 2018 19:16:08)


+1700 Bad Posts
Seam49
Scratcher
500+ posts

"Repeat for ___ secs" blocks

Support, the workaround hardly ever works, and putting wait 20 seconds won't run at all, plus, if the time runs out in the middle, It just will skip the last bits, or at the top, well skip the whole thing, why, there are no reliable workarounds,

Tea. Chocolate.
SickBoi2000
New to Scratch
5 posts

"Repeat for ___ secs" blocks

Support!
I saw the soultions but i would make a custom block out of it.
PizzaAddict4Life
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

(Removed by me)

Last edited by PizzaAddict4Life (July 8, 2020 18:23:50)


Projects
#SaveCubeupload | Kumquat Attack | Game in which you can submit your avatar

Studios
Be Moist | Forum Helpers

Topics
#RoadToMoist100

Press CTRL+SHIFT+DOWN after highlighting a bit of my signature to see the rest of my signature (and keep doing it)

Whats a stick?

If you suggest that the days since 2000 block is removed, you are going to feel the wrath of my TNT recklessness

My kumquat protectors: (~˘▾˘)~ ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) (◕‿◕✿) ( ಠ ͜ʖರೃ) ( ಠ ͜ʖರೃ) ༼ つ ◕_◕ ༽つ
Total Power: 35





Ok this is the end of my signature, but scroll down some more if you want some nice color hex codes.



Turquoise ish green: #17e67b
Epic nice blue: #0090c0
Cool light blue: #c4ffec, #a3ffe1, #85ffd7








































































































Bippity Boppity Boo wow you found me congrats
Mr_PenguinAlex
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

i support, would be useful in so many ways

the workaround is annoying and unreliable

SuperKamekArea
Scratcher
500+ posts

"Repeat for ___ secs" blocks

No support, you are just making a seconds version of the repeat block, you can tell others to avoid turbo mode and you can set this:
... :: hat
repeat (() * (30))
...
end
...
Also, isn't this rejected?

NOTE: I have left scratch, see my featured project for more info


You are now using SHIFT + DOWN/CARET BROWSING



bump


▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄░██▄██░▄▀▄░█░▄▀▄░█░▄▄███░▄▄▀█░▄▄▀████▄██░▄▄▀█▄░▄█░▄▄█░▄▄▀█░▄▄▀█░▄▄█▄░▄
██░█▀▀██░▄█░█▄█░█░█▄█░█░▄▄███░▀▀░█░██░████░▄█░██░██░██░▄▄█░▀▀▄█░██░█░▄▄██░█
██░▀▀▄█▄▄▄█▄███▄█▄███▄█▄▄▄███▄██▄█▄██▄███▄▄▄█▄██▄██▄██▄▄▄█▄█▄▄█▄██▄█▄▄▄██▄█
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀



































































Mr_PenguinAlex
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

SuperKamekArea wrote:

No support, you are just making a seconds version of the repeat block,
That's the point.

SuperKamekArea wrote:

you can set this:
... :: hat
repeat (() * (30))
...
end
...
That doesn't work.

SuperKamekArea wrote:

Also, isn't this rejected?
It isn't rejected.

DarthVader4Life
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

I'm getting real sick and tired of people saying “No support, there's a workaround.” Very rarely does a block get removed because of a workaround. so rare in fact, that the only instance of a block getting removed because of a workaround that i am 100% sure happened is the forever if block. even then the extremely simple workaround wasn't the only factor, apparently users didn't understand it either. and because a block has a workaround DOESN'T mean it shouldn't be added. so if you could kindly read this, that'd be great.

Be Moist Also, here's a helpful link to Ocular
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
cooldude-222
Scratcher
100+ posts

"Repeat for ___ secs" blocks

Support!
I was about to suggest this! It would look like this:
repeat for (10) seconds { 

} ::control
And work like this:
set [time v] to (timer)
repeat until <(timer) > ((time) + [10])

Last edited by cooldude-222 (July 22, 2020 03:50:29)


Have a nice day!
cooldude-222
Scratcher
100+ posts

"Repeat for ___ secs" blocks

If you have a very accurate fps variable you could do this:
reset timer
Repeat ((fps) * (# of seconds))
...
end
set [fps v] to (timer)

Have a nice day!
AnAccount_StopAsking
Scratcher
500+ posts

"Repeat for ___ secs" blocks

Here's a workaround:

set [parameter v] to (timer)
repeat until <(timer) = ((parameter) + (. . .))>
. . .
end

Sorry, were you expecting a signature introduction? Too bad! (Press Shift+Down on a part of this signature to read more!)

Legend:

Your suggestion is virtually perfection in my eyes.
You barely need to improvise.
Full support.
Mostly support.
Semi-support.
Barely support.
No support.
Negative support.
I see your suggestion as a war crime.
This is the worst suggestion in existence.

Only true potatoes are sacked.

when I receive [be an annoying 5 year old v]
repeat (EXPAN)
say [AMONG US AT 3 AM!!!!!]
end
Maximouse
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

TheAdriCoolManDude wrote:

No Support. It would cause problems, like this:

repeat for (2) seconds { 
wait (20) secs
} :: control
This would just wait 20 seconds. Why no support because of one special case?


This is Maximouse's signature. Learn more about signatures.
-InsanityPlays-
Scratcher
1000+ posts

"Repeat for ___ secs" blocks


Welcome to my signature!
I've moved accounts. Anyway, did this post help you? Go follow me on my new account!
Today's Links: Scratch 4.0 Leaked Information, Astronomical - The Third, The Forum Community
follow me on scratch or i am sad, subscribe to my YouTube channel or bad luck for the rest of your life
My Final Shoutout: hekcer because in computer science class, he is the hekcerman
-InsanityPlays- Fan Studio! (closed) | Astronomical - The Third | Best of -InsanityPlays- 2020
my channel, my website, ctrl+shift+down for more STUFF







2020's Advent Collection:

more STUFF
HTML-Fan
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

Well, I'm kinda not really sure. I think that it is similar to forever if: It's not completely clear what it does. You can find it out pretty easily, but it's not totally obvious that it's just a repeat until kinda thing, not that it stops executing when the time is over. So, I guess, overall rather no support.

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
op1298
Scratcher
83 posts

"Repeat for ___ secs" blocks

You could just do:
reset timer
repeat until <(timer) = (...)>
...
end

Last edited by op1298 (July 26, 2020 04:15:43)


Press Ctrl+Shift+Down after highlighting some of my signature to see the rest of my signature.
I have a big decision to make

Disclaimer: This is a big joke, so do not report me.
ROAD TO 100 FOLLOWERS!
██░░░░░░░░░ 13%

ROAD TO 100 FOLLOWERS! :: grey
(:: reporter motion)(:: reporter motion)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter) 13% :: grey
SERIOUSLY!?!?!? THIS PROJECT HAS ONLY 1 VIEW!?!?!? AND THIS!?!?!? REALLY!?!?!?
forever {(x position)} :: control cap
awesome_guy6856
Scratcher
100+ posts

"Repeat for ___ secs" blocks

I agree with this idea. Although there is a workaround, it's a hassle to implement. Plus too many variables gets confusing and annoying to manage.

i made TABS in scratch look https://scratch.mit.edu/projects/429591956/
HTML-Fan
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

That workaround is way too easy. And, really, I don't know a single programming language with something so weird. Why can't you just check the time? And where would you use it?

Joke of the century: Just made a good remix of this with Scratch's music extension.
                      BE MOIST B) AND CHECK OUT
_____ ______ _ _
|_ _| | _ (_) (_)
| |_ _____ | | | |_ _ __ ___ ___ _ __ ___ _ ___ _ __ ___ #RoadToMoist100
| \ \ /\ / / _ \ | | | | | '_ ` _ \ / _ \ '_ \/ __| |/ _ \| '_ \/ __|
| |\ V V / (_) | | |/ /| | | | | | | __/ | | \__ \ | (_) | | | \__ \
\_/ \_/\_/ \___/ |___/ |_|_| |_| |_|\___|_| |_|___/_|\___/|_| |_|___/
DarthVader4Life
Scratcher
1000+ posts

"Repeat for ___ secs" blocks

HTML-Fan wrote:

That workaround is way too easy. And, really, I don't know a single programming language with something so weird. Why can't you just check the time? And where would you use it?
kindly read the post below.

DarthVader4Life wrote:

I'm getting real sick and tired of people saying “No support, there's a workaround.” Very rarely does a block get removed because of a workaround. so rare in fact, that the only instance of a block getting removed because of a workaround that i am 100% sure happened is the forever if block. even then the extremely simple workaround wasn't the only factor, apparently users didn't understand it either. and because a block has a workaround DOESN'T mean it shouldn't be added. so if you could kindly read this, that'd be great.
and the ambiguity of the forever if is not replicated with this.
repeat for (10) seconds { 
wait (20) secs
} ::control

would wait 20 secs.

repeat for (60) seconds { 
...
} ::control
would repeat everything in there until 60 secs has passed. if the script execution time exceeds 60 secs, the script inside would only run once.

Last edited by DarthVader4Life (July 26, 2020 13:46:31)


Be Moist Also, here's a helpful link to Ocular
I am DV4L, Erector of Text Walls, Typer of Long Posts, Creator of Mini-mod posts
The kumquats have eaten this line, so I have to have a new way to repel them.
Had a bad day or are feeling bored? Watch this to make your day better in an interesting way.
Do you think you've been banned unfairly? Then you'd be wrong. The ST aren't children, so quit acting like they are.
op1298
Scratcher
83 posts

"Repeat for ___ secs" blocks

I need this suggested block for one of my projects!

reset timer
repeat until <(timer) = [The amount of time it should repeat.]>
...
end

Last edited by op1298 (July 26, 2020 17:06:30)


Press Ctrl+Shift+Down after highlighting some of my signature to see the rest of my signature.
I have a big decision to make

Disclaimer: This is a big joke, so do not report me.
ROAD TO 100 FOLLOWERS!
██░░░░░░░░░ 13%

ROAD TO 100 FOLLOWERS! :: grey
(:: reporter motion)(:: reporter motion)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter)(:: reporter) 13% :: grey
SERIOUSLY!?!?!? THIS PROJECT HAS ONLY 1 VIEW!?!?!? AND THIS!?!?!? REALLY!?!?!?
forever {(x position)} :: control cap

Powered by DjangoBB