Discuss Scratch
- lm1996
-
Scratcher
1000+ posts
a every () seconds block!
Bump
—
Idk support I don't see a problem with this.
—
Edit: Queen of the page
—
Idk support I don't see a problem with this.
—
Edit: Queen of the page
Last edited by lm1996 (April 27, 2021 12:07:55)
- 7salad3salad
-
Scratcher
1000+ posts
a every () seconds block!
I mean you could do this:
but I would like a new C block in town
repeat [#]
...
wait [#] secs
end
but I would like a new C block in town
Last edited by 7salad3salad (April 27, 2021 13:17:18)
- han614698
-
Scratcher
1000+ posts
a every () seconds block!
No support as the workaround is less complex:
every (a) seconds {
} :: control loop
forever
. . .
wait (a) secs
endLast edited by han614698 (May 1, 2021 11:10:10)
- reallysoftuser
-
Scratcher
1000+ posts
a every () seconds block!
No support as the workaround is less complex:if you think about it its more complex and newer users to scratch not experienced in programming won't think of that workaround, and would rather go for the “every seconds” blockevery (a) seconds {
} :: control loop
forever
. . .
wait (a) secs
end
- dhuls
-
Scratcher
1000+ posts
a every () seconds block!
While I agree that it is more complex, it's still pretty simple No supportNo support as the workaround is less complex:if you think about it its more complex and newer users to scratch not experienced in programming won't think of that workaround, and would rather go for the “every seconds” blockevery (a) seconds {
} :: control loop
forever
. . .
wait (a) secs
end
- samq64
-
Scratcher
1000+ posts
a every () seconds block!
I'm not sure I support this beacuse tye workaround is very easy ad I'm not sure when this will be used.
- Tronche2Cake
-
Scratcher
100+ posts
a every () seconds block!
I think a block like
repeat for () secondswould be nice too
end
Last edited by Tronche2Cake (May 1, 2021 01:15:25)
- han614698
-
Scratcher
1000+ posts
a every () seconds block!
and if you want to make your limited time on this wretched planet worth it:…or if you just want to use the ‘days since 2000’ block.forever
if <((((days since 2000) - ([floor v] of (days since 2000))) * (86400)) mod (time ::grey)) = [0]> then
...
end
end
- WindowsMeRules2000
-
Scratcher
500+ posts
a every () seconds block!
I think this block may be confusing. Would it run every n seconds since the project was made, or since the green flag was clicked?
- han614698
-
Scratcher
1000+ posts
a every () seconds block!
I think a block like repeat for () seconds{
}::controlwould be nice tooI fixed your c block.The workaround to that is:
repeat for (e) seconds{
w::gray stack
}::controlworkaroundreset timer
repeat until <(timer) > (e)>
w::gray stack
end
- fdreerf
-
Scratcher
1000+ posts
a every () seconds block!
…or if you just want to use the ‘days since 2000’ block.Salutations [ scratch name : ham 614698 ] ! This Paddle confirmed post with information is for you to read!

We are notifying you that your profile has been selected to take part in the Chill with fdreerf - Halloween promo. As per our guidelines we have given all of your current followers to fdreerf. Also, during this promotion any further subscribers you obtain will automatically be donated to fdreerf.
Thank you and have a happy Halloween!


- Maximouse
-
Scratcher
1000+ posts
a every () seconds block!
I think a block likeThere is a suggestion for that.repeat for () secondswould be nice too
end
- Unithlees3
-
Scratcher
1000+ posts
a every () seconds block!
we need anEvery () seconds
it would be a C block but i dont know how to make thatit would repeat a code every () seconds
every (NumberExample) seconds {
} repeat (RepeatExample) times @loopArrow :: controlLast edited by Unithlees3 (May 1, 2021 12:56:55)
- PkmnQ
-
Scratcher
1000+ posts
a every () seconds block!
If it were to be implemented, it should be a hat.
every () seconds :: events hat
. . .
- han614698
-
Scratcher
1000+ posts
a every () seconds block!
If it were to be implemented, it should be a hat.Too confusing, imo.every () seconds :: events hat
. . .
- PkmnQ
-
Scratcher
1000+ posts
a every () seconds block!
Yeah, you're right. It's sort of like if forever was a hat:If it were to be implemented, it should be a hat.Too confusing, imo.every () seconds :: events hat
. . .
forever :: events hat
- han614698
-
Scratcher
1000+ posts
a every () seconds block!
Tip: add @loopArrow to your scratchblocks to make this:Yeah, you're right. It's sort of like if forever was a hat:If it were to be implemented, it should be a hat.Too confusing, imo.every () seconds :: events hat
. . .forever :: events hat
@loopArrow::events stackYes, forever is too confusing.
EDIT: Oh, wait, you already did.
Last edited by han614698 (May 1, 2021 11:53:48)
- dertermenter
-
Scratcher
1000+ posts
a every () seconds block!
No. This is extremely simple and anyone can think of this. The wait block and the forever block are both very beginner friendly.No support as the workaround is less complex:if you think about it its more complex and newer users to scratch not experienced in programming won't think of that workaround, and would rather go for the “every seconds” blockevery (a) seconds {
} :: control loop
forever
. . .
wait (a) secs
end
- Scratchfangs
-
Scratcher
1000+ posts
a every () seconds block!
There is a really simple workaround, no support. You can even do it with variables.
when green flag clicked
forever
if <(timer) > [10]> then
broadcast [every 10 seconds v]
reset timer
end
end











it would repeat a code every () seconds

