Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Official [scratchblocks] Testing Topic 9
- vdiaz041
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
All events blocks in 3.0
when green flag clicked
when [space v] key pressed
when this sprite clicked
when backdrop switches to [backdrop1 v]
when [loudness v] > (10)
when I receive [message1 v]
broadcast [message1 v]
broadcast [message1 v] and wait
- vdiaz041
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
All control blocks in 3.0
wait (1) secs
repeat (10)
end
forever
end
if <> then
end
if <> then
else
end
wait until <>
repeat until <>
end
stop [all v]
when I start as a clone
create clone of [myself v]
delete this clone
- vdiaz041
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
All sensing blocks in 3.0
<touching [mouse-pointer v] ?>
<touching color [#3b6971] ?>
<color [#9c3afd] is touching [#d6c7c2] ?>
(distance to [mouse-pointer v])
ask [What's your name?] and wait
(answer)
<key [space v] pressed?>
<mouse down?>
(mouse x)
(mouse y)
set drag mode [draggable v]::sensing
(loudness)
(timer)
reset timer
([backdrop # v] of [Stage v])
(current [year v])
(days since 2000)
(username)
- vdiaz041
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
All operators blocks in 3.0
(() + ())
(() - ())
(() * ())
(() / ())
(pick random (1) to (10))
<[] > [50]>
<[] < [50]>
<[] = [50]>
<<> and <>>
<<> or <>>
<not <>>
(join [apple ] [banana])
(letter (1) of [apple])
(length of [apple])
<[apple] contains [a]?::operators
(() mod ())
(round ())
([abs v] of ())
- vdiaz041
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
All variables blocks in 3.0
(my variable)
set [my variable v] to [0]
change [my variable v] by (1)
show variable [my variable v]
hide variable [my variable v]
- vdiaz041
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
All list blocks in 3.0
(list :: list)
add [thing] to [list v]
delete (1) of [list v]
delete all of [list v]::list
insert [thing] at (1) of [list v]
replace item (1) of [list v] with [thing]
(item (1) of [list v] :: list)
(item # of [thing] in [list v] :: list)
(length of [list v] :: list)
<[list v] contains [thing] ?>
show list [list v]
hide list [list v]
- Maximouse
- Scratcher
1000+ posts
Official [scratchblocks] Testing Topic 9
run (item (random v) of (list ({move () steps} @addInput :: ring) ({change [color v] effect by ()} @addInput :: ring) @delInput @addInput :: list)) with inputs (pick random (10) to (20)) @delInput @addInput :: control
- thebruce10
- Scratcher
19 posts
Official [scratchblocks] Testing Topic 9
My browser / operating system: Windows NT 10.0, Chrome 128.0.0.0, No Flash version detected
- thebruce10
- Scratcher
19 posts
Official [scratchblocks] Testing Topic 9
red cap block::hat #ff0000
usually doesn't the red cap block not have a clip thing at the bottom?
- thebruce10
- Scratcher
19 posts
Official [scratchblocks] Testing Topic 9
blacky :: #000000
reddy :: #ff00000
- 17Domin0
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
blacky :: #000000reddy
greeny::operators
- 17Domin0
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
Scratch::control hat
Imagine::operators
Program::sensing
Share::motion
- kirbcraftforeal
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
when green flag clicked :: #EB407A
move [kirbcraftforeal] steps :: #EB407A
play sound [kirbcraftforeal v] until done :: #EB407A
Last edited by kirbcraftforeal (Sept. 4, 2024 21:51:17)
- 17Domin0
- Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
All custom blocks in Scratch 3.0 2.0:
define Say (words) at pitch (pitch::pen) and speed (speed::motion)
when green flag clicked
Say [Hi!] at pitch [79] and speed [1]
Last edited by 17Domin0 (Sept. 4, 2024 21:57:15)
- champion_ofcloud-var
- Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
blacky :: #000000reddygreeny::operators
bluey::sensing
- BluePixelLOLLL
- Scratcher
1000+ posts
Official [scratchblocks] Testing Topic 9
blacky :: #000000reddygreeny::operatorsbluey::sensing
Purpley ::looks
Last edited by BluePixelLOLLL (Sept. 5, 2024 00:03:29)