Discuss Scratch
- Discussion Forums
- » Suggestions
- » "Repeat for ___ secs" blocks
- anguz110
- Scratcher
46 posts
"Repeat for ___ secs" blocks
Jfc this thread is almost 4 years old and it's been answered already, stop necrobumping
Ample parking day or night, people spouting HOWDY NEIGHBOR!
- stickfiregames
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
You're allowed to post on old suggestions if they haven't been implemented or rejected. Jfc this thread is almost 4 years old and it's been answered already, stop necrobumping
Anyway this block is ambiguous. If the time runs out halfway through the loop, would it cut off immediately or carry on to the end of the loop? The first might be more expected but it means you can't guarantee that every block in the loop will run the same number of times. The second would be more like the repeat until block.
- tali1665
- Scratcher
100+ posts
"Repeat for ___ secs" blocks
Support!
repeat for (1) secs::control
when green flag clicked60 posts achieved on July 1st, 2017, 11:52 AM.
100 posts!
forever
change [excitement v] by (1)
end
100 posts achieved on December 18th, 2017, 9:51 AM.
tali1665 has 1 internet. to give an internet, click here.
- Smurphy13AWESOME
- Scratcher
500+ posts
"Repeat for ___ secs" blocks
Sorry, no support. ST wants to make Scratch learning, only the essentials. Not to make it really easy. Good idea, but any block that's not adding a new thing, just making it easier shouldn't be added.
- Auroura_Wolf
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
Read the stickies. This has already been suggested, and already has a workaround. Now I suggest you close this topic
My alt account, where I upload nothing (much like my main account)
I play video games and sometimes do other things. I don't really make anything on Scratch anymore, but I'm relatively active on the Undertale and Deltarune forums.
Click this. Or don't.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut
aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
qui officia deserunt mollit anim id est laborum.
- anguz110
- Scratcher
46 posts
"Repeat for ___ secs" blocks
This thread is, like, 3 years old.
Ample parking day or night, people spouting HOWDY NEIGHBOR!
- _-Unity-_
- Scratcher
11 posts
"Repeat for ___ secs" blocks
that's nice. sometimes we need to control our timing and I think there should be repeat blocks that don't repeat a given number of times, but for a given number of seconds.this is what we need… Nice one!
How it works is, there's a repeat block like this:repeat (for ___ seconds?)
end
Then you enter how many seconds you want it to repeat.
Please give feedback
- cul8er
- Scratcher
500+ posts
"Repeat for ___ secs" blocks
??? Read the stickies. This has already been suggested, and already has a workaround. Now I suggest you close this topic
Where has it already been suggested? Which sticky?
As mentioned, there's a workaround and some ambiguity as to how it would work.
No support.
Gone.
- Sheep_maker
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
This is the oldest repeat for _ secs block suggestion; this topic was probably posted on because their topic was closed for being a duplicate of this topic. Read the stickies. This has already been suggested, and already has a workaround. Now I suggest you close this topic
- Sheep_maker This is a kumquat-free signature. :P
This is my signature. It appears below all my posts. Discuss it on my profile, not the forums. Here's how to make your own.
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
- Pixar2000
- Scratcher
100+ posts
"Repeat for ___ secs" blocks
No. More like this.that's nice. sometimes we need to control our timing and I think there should be repeat blocks that don't repeat a given number of times, but for a given number of seconds.this is what we need… Nice one!
How it works is, there's a repeat block like this:repeat (for ___ seconds?)
end
Then you enter how many seconds you want it to repeat.
Please give feedback
repeat for (1) secs{
}::control
Para::greyThis signature is currently being protected by SiggyBot.
de::motion
x::variables
(: ::custom-arg) )::custom ringoooooo new forum server
- Charles12310
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
No Support. What if you are putting a script it the repeat seconds block and that one script takes more time than the amount of seconds you want? And if it does complete and the seconds are up, will it repeat again? No, it would repeat only once, since those seconds are up, and the script is done. Besides, what would happen to the script while the seconds are gone? Will they continue, or stop?
However, here is a good workaround:
However, here is a good workaround:
reset timer
repeat until <(timer) = (amount of seconds you want)>
... // Do Your Stuff Here
end
A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
- PkmnQ
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
Fixed, and here's a workaround. I think there should be repeat blocks that don't repeat a given number of times, but for a given number of seconds.
How it works is, there's a repeat block like this:repeat for () seconds{
. . .
} :: control
Then you enter how many seconds you want it to repeat.
Please give feedback
set [timer+ v] to ((timer) + (. . .))
repeat until <(timer) = (timer+)>
. . .
end
Last edited by PkmnQ (July 22, 2017 14:01:11)
wowee
- LionHeart70
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
Semi support.. But there's a workaround. I could use this for an animation, though.
lh70 / nora/tobi / she-they pronouns / pansexual-demisexual / 14 / sagittarius / furry / artist / intp / stop-motion films / lbp / fall out boy / panic! at the disco / twenty one pilots / stranger things / a series of unfortunate events
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
“When you have a bad day, a really bad day, try and treat the world better than it treated you.” -Patrick Stump
“Music seems to hold everything together. It seems to make things not so chaotic sometimes. It seems to make things make more sense sometimes.” -Tyler Joseph
“You'll fear your fears forever if you never do things you're afraid of.” -Josh Dun
“I'm still figuring out who I am, but I know I'm not who I was.” -Brendon Urie
- FancyFoxy
- Scratcher
500+ posts
"Repeat for ___ secs" blocks
I'd say I'd support this, as I would've needed this block for my animations and I'd assume, my games.
I'd is my favorite word now
I'd is my favorite word now
THIS IS MY SIGNATURE. THIS MEANS IT IS AN AUTOMATIC MESSAGE THAT APPEARS AT THE BOTTOM OF ALL MY POSTS.
Hi! I'm FancyFoxy! I create animations and games that were never, EVER meant to be taken seriously.
FancyFoxy Heroes and #Thanksgiving are some of my latest projects, check them out!
- Botcho_Otkho
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
removed by me because at this time i was kinda dumb
Last edited by Botcho_Otkho (July 22, 2020 11:14:49)
I see now that the circumstances of one's birth are irrelevant. It is what you do with the gift of life that determines who you are. - Mewtwo
- Charles12310
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
It isn't rejected. There is nothing in the sticky. It's just that this block is complicated. Rejected from the sticky.
A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
- walkcycle
- Scratcher
500+ posts
"Repeat for ___ secs" blocks
That's a better workaround since the timer doesn't have to be reset. Fixed, and here's a workaround.set [timer+ v] to ((timer) + (. . .))
repeat until <(timer) = (timer+)>
. . .
end
Change the Boolean to
<(timer) > (timer+)> // greater than
so the loop is exited for sure.
- Charles12310
- Scratcher
1000+ posts
"Repeat for ___ secs" blocks
set [timer1 v] to ((timer) + (# of seconds))
repeat until <not <(timer) < (# of seconds)>>
...
end
What do you mean, exited? The timer doesn't have to be more than the amount of seconds otherwise it would repeat for the amount more than we want.
A few internet communication companies want to corrupt the internet by getting rid of net neutrality. Stop Them!
- HappyMohid
- Scratcher
73 posts
"Repeat for ___ secs" blocks
repeat <[] < []>
end
in scratch wiki
(●◡● ::#222222) // just a happy guy
<⌐▨_▨::sensing> // he protec siggy , his name is horizood
cmos@cmos:~$ neowofetch
___________ cmos@cmos
|_ \ ---------
| | _____ | OS: Linux Mint bookworm/sid (virginia) x86_64
| | | | | | Host: Vostro 3560 A07
| | | | | | Packages: 3251 (dpkg), 19 (flatpak-system), 1 (flatpak-user)
| \_____/ | CPU: Intel i3-2370M (4) @ 2.400GHz
\_________/ GPU: Intel 2nd Generation Core Processor Family
cmos@cmos:~$ █
- Discussion Forums
- » Suggestions
- » "Repeat for ___ secs" blocks