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

Last edited by lm1996 (April 27, 2021 12:07:55)

7salad3salad
Scratcher
1000+ posts

a every () seconds block!

I mean you could do this:

repeat [#]
...
wait [#] secs
end

but I would like a new C block in town

Last edited by 7salad3salad (April 27, 2021 13:17:18)

reallysoftuser
Scratcher
1000+ posts

a every () seconds block!

forever
...
wait () secs
end
bruh moment
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
end

Last edited by han614698 (May 1, 2021 11:10:10)

reallysoftuser
Scratcher
1000+ posts

a every () seconds block!

han614698 wrote:

No support as the workaround is less complex:
every (a) seconds {
} :: control loop

forever

. . .
wait (a) secs
end
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” block
dhuls
Scratcher
1000+ posts

a every () seconds block!

reallysoftuser wrote:

han614698 wrote:

No support as the workaround is less complex:
every (a) seconds {
} :: control loop

forever

. . .
wait (a) secs
end
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” block
While I agree that it is more complex, it's still pretty simple No support
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 () seconds

end
would be nice too

Last edited by Tronche2Cake (May 1, 2021 01:15:25)

han614698
Scratcher
1000+ posts

a every () seconds block!

fdreerf wrote:

and if you want to make your limited time on this wretched planet worth it:

forever
if <((((days since 2000) - ([floor v] of (days since 2000))) * (86400)) mod (time ::grey)) = [0]> then
...
end
end
…or if you just want to use the ‘days since 2000’ block.
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!

Tronche2Cake wrote:

I think a block like
repeat for () seconds{

}::control
would be nice too
I fixed your c block.
The workaround to that is:
repeat for (e) seconds{
w::gray stack
}::control
workaround
reset timer
repeat until <(timer) > (e)>
w::gray stack
end
fdreerf
Scratcher
1000+ posts

a every () seconds block!

han614698 wrote:

…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!

Tronche2Cake wrote:

I think a block like
repeat for () seconds

end
would be nice too
There is a suggestion for that.
Unithlees3
Scratcher
1000+ posts

a every () seconds block!

HarmlessOstrich wrote:

we need an
Every () seconds

it would be a C block but i dont know how to make that it would repeat a code every () seconds
every (NumberExample) seconds {
} repeat (RepeatExample) times @loopArrow :: control

Last 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!

PkmnQ wrote:

If it were to be implemented, it should be a hat.
every () seconds :: events hat
. . .
Too confusing, imo.
PkmnQ
Scratcher
1000+ posts

a every () seconds block!

han614698 wrote:

PkmnQ wrote:

If it were to be implemented, it should be a hat.
every () seconds :: events hat
. . .
Too confusing, imo.
Yeah, you're right. It's sort of like if forever was a hat:
forever :: events hat
han614698
Scratcher
1000+ posts

a every () seconds block!

PkmnQ wrote:

han614698 wrote:

PkmnQ wrote:

If it were to be implemented, it should be a hat.
every () seconds :: events hat
. . .
Too confusing, imo.
Yeah, you're right. It's sort of like if forever was a hat:
forever :: events hat
Tip: add @loopArrow to your scratchblocks to make this:
@loopArrow::events stack
Yes, 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!

reallysoftuser wrote:

han614698 wrote:

No support as the workaround is less complex:
every (a) seconds {
} :: control loop

forever

. . .
wait (a) secs
end
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” block
No. This is extremely simple and anyone can think of this. The wait block and the forever block are both very beginner friendly.
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

Powered by DjangoBB