Discuss Scratch
- Discussion Forums
- » Suggestions
- » Workarounds to frequently suggested blocks
- orrinpants
-
100+ posts
Workarounds to frequently suggested blocks
just to tell you these are the same
and
go to x: (0) y: (0)
say [hello] for (2) secs
and
text(“hello”0, 0);
Last edited by orrinpants (May 1, 2020 14:28:21)
- orrinpants
-
100+ posts
Workarounds to frequently suggested blocks
stuff like:
4
(SCRATCHBLOCKS: )when green flag clicked
say [i underlined the underline] for (2) secs
- Beamy68
-
100+ posts
Workarounds to frequently suggested blocks
Yeah, hopejay, the note says this also goes for other keys, in my tests projects this is also shown off.
Last edited by Beamy68 (May 1, 2020 14:44:07)
- Beamy68
-
100+ posts
Workarounds to frequently suggested blocks
There is a workaround for that i wish there was a AM/PM blockif <(current [AM/PM v]) = [PM]> then
say [its late] for (2) secs
end

when green flag clicked
forever
if <<(current [hour v]) = [12]> or <(current [hour v]) > [12]>> then
set [AM/PM v] to [PM]
else
set [AM/PM v] to [AM]
end
end
- orrinpants
-
100+ posts
Workarounds to frequently suggested blocks
|[ v]|
Last edited by orrinpants (May 1, 2020 15:37:56)
- orrinpants
-
100+ posts
Workarounds to frequently suggested blocks
<[...] =/ [...]>can be recreated with:
<not <[...] = [...]>>
Last edited by orrinpants (May 1, 2020 16:21:53)
- Beamy68
-
100+ posts
Workarounds to frequently suggested blocks
There is a workaround for
all at once {:D
...
} :: control
Make a custom block named all at once and remember to check the box titled “Run without screen refresh”define all at once (script#)then run:
if <(script#)=[1]> then
...
endall at once [1]::custom
Last edited by Beamy68 (May 1, 2020 17:01:37)
- -LekkerGames-
-
67 posts
Workarounds to frequently suggested blocks
Workaround for
<[message1 v] received?::events>
when I receive [message1 v]
set [message1 v] to [1]
when green flag clicked
set [message1 v] to [0]
forever
wait until <(message1) = [1]>
...
end
when green flag clicked
...
broadcast [message1 v]
Last edited by -LekkerGames- (May 1, 2020 17:14:41)
- Beamy68
-
100+ posts
Workarounds to frequently suggested blocks
-snip-Please check to see if your workaround has already been discussed here before posting.
Last edited by Beamy68 (May 1, 2020 18:20:07)
- Hopeijay
-
90 posts
Workarounds to frequently suggested blocks
If you mean absolute value…|[ v]|
set [|value| v] to ([abs v] of [value])
- Tommy3x3
-
35 posts
Workarounds to frequently suggested blocks
Thank. You. So. Much.Events :: events hat———————————————————–when ( :: obsolete) clicked :: events hatcan be recreated with the following code:
...when @greenFlag clicked
forever
set [timer v] to ( timer )
end
when [timer v] > ( timer :: variables )
. . .when < . . . > is true :: events hatcan be recreated with the following code:when @greenFlag clicked
broadcast [ Continue v]
when [timer v] > ( timer :: variables )
broadcast [ Continue v]
when I receive [Continue v]
broadcast [ Check v]
forever
set [ timer v] to ( timer )
when I receive [ Check v]
forever
if < . . . > then
. . .
end
end








- ExplodingEggz
-
1 post
Workarounds to frequently suggested blocks
<key [ /] pressed?>can be recreated with these two blocks
<key (letter (1) of [/]) pressed?>
also works with period, comma and possibly the other keys.
It also seems like
<key (join [/] []) pressed?>works too now.
Last edited by ExplodingEggz (May 2, 2020 02:15:20)
- GuineaGod
-
500+ posts
Workarounds to frequently suggested blocks
<key [ /] pressed?>can be recreated with these two blocks<key (letter (1) of [/]) pressed?>
also works with period, comma and possibly the other keys.
It also seems like<key (join [/] []) pressed?>works too now.
That is a good idea!
- PixelYoshi
-
100+ posts
Workarounds to frequently suggested blocks
technically this just runs your code as fast as possible, not all at the same time. this workaround would run all your code at the same time, although it is annoying: -snip-
when i receive [run all at once v]this would run the
if <(script)=(1)> then
move (10) steps
end
when i receive [run all at once v]
if <(script)=(1)> then
change size by (10)
end
move (10) stepsand the
change size by (10)at the same time. if you wanted to do more than one script, add more
if <(script)=(...)> thenafter the “when i receive” block.
end
to run the code, just put
set [script v] to (...)this would run whatever script you chose with all the blocks at the same time.
broadcast [run all at once v]
- SuperRyn
-
100+ posts
Workarounds to frequently suggested blocks
If you want to play a sound with a variable, use
play sound (Sound)
- Beamy68
-
100+ posts
Workarounds to frequently suggested blocks
Well actually for some reason, when using the custom blocks without screen refresh, it ignores waiting, and other things, but Yeah, I forgot about that way, and I've used it in my projects once or twice-snip--snip-
Last edited by Beamy68 (May 4, 2020 13:34:26)
- Beamy68
-
100+ posts
Workarounds to frequently suggested blocks
please read if the workaround is already on the list lol(-snip-)
- Hopeijay
-
90 posts
Workarounds to frequently suggested blocks
<key [ /] pressed?>can be recreated with these two blocks<key (letter (1) of [/]) pressed?>
also works with period, comma and possibly the other keys.
It also seems like<key (join [/] []) pressed?>works too now.
<key (join [?] []) pressed?>also works as
<key ([shift] + [/]) pressed?>Just something interesting.
Last edited by Hopeijay (May 4, 2020 15:47:38)
- Discussion Forums
- » Suggestions
-
» Workarounds to frequently suggested blocks