Discuss Scratch

  • Discussion Forums
  • » Suggestions
  • » [scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video [RSS Feed]
jupiterboy
Scratcher
55 posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

whencookiesAllTime>500000stopallsoundsbroadcastplay a different soundtoallwhencookiesAllTime500000stopallsoundsbroadcastplay this soundtoallwhenIreceiveplay this soundforeverplaysoundmedieval2whenIreceiveplay a different soundforeverplaysoundTemple
duckboycool
Scratcher
1000+ posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

Could you give examples of what you would add there?

Also, please don't blockspam.
WaffleChurro
Scratcher
100+ posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

whenclickedforeveriffoo=5000orfoo>5000thenmove9001steps

This was what you meant, right?

Last edited by WaffleChurro (Feb. 3, 2017 06:30:19)

braxbroscratcher
Scratcher
1000+ posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

I fail to see why we have that at all.

A universal
when
would suffice for most of the current hat blocks.
jupiterboy
Scratcher
55 posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

WaffleChurro wrote:

whenclickedforeveriffoo=5000orfoo>5000thenmove9001steps

This was what you meant, right?
no, I want it to happen the instant the thing hits that value and not repeat. and also we have when blocks for everything. a couple of them have workarounds themselves, such as (when this sprite clicked) and as you mentioned, (when (loudness) > 10

DAjit_15
Scratcher
1 post

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

What does this block do?
Charles12310
Scratcher
1000+ posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

jupiterboy wrote:

whencookiesAllTime>500000stopallsoundsbroadcastplay a different soundtoallwhencookiesAllTime500000stopallsoundsbroadcastplay this soundtoallwhenIreceiveplay this soundforeverplaysoundmedieval2whenIreceiveplay a different soundforeverplaysoundTemple
I really think this block is useful:
broadcastbroadcasttoall
Because then you can only send broadcasts to only certain sprites, which might be useful in some cases, like if you are trying to send a broadcast to a few sprites in a certain order and you want to do it with one broadcast and not a few:
broadcastbroadcasttoSprite1broadcastbroadcasttoSprite2

What do you mean by this block:

whencookiesAllTime>500000

Last edited by Charles12310 (Sept. 25, 2017 13:43:22)

DaEpikDude
Scratcher
1000+ posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

It sounds like you're suggesting a “when <>” block, or at least it might as well be. That was in Scratch at one point, but it was removed (for some reason…).
In terms of adding variables and such to the when block, you can do this:
whentimer>0foreverifcookiesAllTime>500000then. . .
I support the broadcast extension, though.
Fupicat
Scratcher
1000+ posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

I'm assuming CookiesAllTime is a variable. So you want an event block that works with variables. I think this is a good idea. Support.
walkcycle
Scratcher
500+ posts

[scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video

waituntilcookiesAllTime>500000
and
waituntilcookiesAllTime<500000

combined with events, such as

whenclicked
or
whentimer>0

looks like would do this.

jupiterboy wrote:

no, I want it to happen the instant the thing hits that value and not repeat.
Try above.
  • Discussion Forums
  • » Suggestions
  • » [scratchblocks]when [timer v] > 10[/scratchblocks] block should not be restricted to just loudness, timer, and video [RSS Feed]

Powered by DjangoBB