Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Official [scratchblocks] Testing Topic 6
- Xcvfdd
-
500+ posts
Official [scratchblocks] Testing Topic 6
when green flag clicked
if <<[message]=[studio activity]>> then
RAGE
end
when green flag clickedYay king of page.
if <[message] = [from project]> then
Happy :)
end
Last edited by Xcvfdd (Jan. 5, 2023 01:17:44)
- SunnySmallCrisps
-
3 posts
Official [scratchblocks] Testing Topic 6
when green flag clicked
forever
if <John die> then
go to [ John bodyv]
play sound [ rage quit ] until done
end
end
- RedReadyOPERA
-
100+ posts
Official [scratchblocks] Testing Topic 6
(#5101)samewhen green flag clicked
if <<[message]=[studio activity]>> then
RAGE
endwhen green flag clickedYay king of page.
if <[message] = [from project]> then
Happy :)
end
- cosmo250
-
100+ posts
Official [scratchblocks] Testing Topic 6
Wow, a Scratch Blocks testing forum!?
when green flag clicked
forever
say [Wow! This is amazing!]
end
- fffggheeegehd
-
100+ posts
Official [scratchblocks] Testing Topic 6
define run JS code [code]
run (JavaScript function @addInput (code)::operators)::control
say (join (code) [has been executed] @delInput@addInput ::operators)
- malikthepro
-
14 posts
Official [scratchblocks] Testing Topic 6
okso you can make a game or you can make people say stuff
here is an example:
oh and if you want to make a game use these scripts:
here is an example:
when green flag clicked
say [i am back and i am going to eat your toes]
oh and if you want to make a game use these scripts:
when green flag clicked
forever
change x by (foo)
if <key [left arrow] pressed?> then
change [foo] by (-1)
if <key [right arrow] pressed?> then
change [foo] by (-1)
end
end
end
hope this helped :)
Last edited by malikthepro (Jan. 5, 2023 19:56:24)
- apanageotes
-
88 posts
Official [scratchblocks] Testing Topic 6
when distance < () ::pen hatwhen brightness < () ::pen hatHow do I fix this??
Code:when distance < () ::pen hat
when brightness < () ::pen hat
when distance \< () ::pen hat
when brightness \< () ::pen hat
Code:
when distance \< () ::pen hat
when brightness \< () ::pen hat
- malikthepro
-
14 posts
Official [scratchblocks] Testing Topic 6

dude you're so smart
when green flag clicked
repeat (9)
turn cw (5) degrees
repeat (9)
turn cw (-5) degrees
end
- medians
-
1000+ posts
Official [scratchblocks] Testing Topic 6
when distance < () ::pen hatwhen brightness < () ::pen hatHow do I fix this??
Code:when distance < () ::pen hat
when brightness < () ::pen hatwhen distance \< () ::pen hatwhen brightness \< () ::pen hat
Code:when distance \< () ::pen hat
when brightness \< () ::pen hat
I solved this a while ago... ::pen
- ljsdhojfkjhkjfkjfsd
-
5 posts
Official [scratchblocks] Testing Topic 6
when green flag clicked
say [Testing testing... Is this thing working????]
set x to (pick random (-135) to (135))
set [text] to [gibberish.]
think [text] for (2) secs
- Jpizza115
-
100+ posts
Official [scratchblocks] Testing Topic 6
when New Years happens:: #00ffff hat
make (username) make a project about New Years:: #000000
crash Scratch:: #123456 cap
- Jpizza115
-
100+ posts
Official [scratchblocks] Testing Topic 6
uh i fixed it:when green flag clicked
forever
if <John die> then
go to [ John bodyv]
play sound [ rage quit ] until done
end
end
when green flag clicked
forever
if <John die> then
go to [John body v]
play sound [rage quit v] until done
end
end
- Jpizza115
-
100+ posts
Official [scratchblocks] Testing Topic 6
Griffpatch's biggest block of code in “Fish not included…. yet”:
define Cloud Tick
Process Cloud [1] (join [=] (☁ CLOUD1))::custom
Process Cloud [2] (join [=] (☁ CLOUD2))::custom
Process Cloud [3] (join [=] (☁ CLOUD3))::custom
Process Cloud [4] (join [=] (☁ CLOUD4))::custom
Process Cloud [5] (join [=] (☁ CLOUD5))::custom
Process Cloud [6] (join [=] (☁ CLOUD6))::custom
Process Cloud [7] (join [=] (☁ CLOUD7))::custom
Process Cloud [8] (join [=] (☁ CLOUD8))::custom
Process Cloud [9] (join [=] (☁ CLOUD9))::custom
if <(timer) \< (next post)> then
stop [this script v]
end
set [next post v] to ((timer) + (pick random (0.4) to (0.5)))
if <(length of [RECORD v]::data) \< [1]> then
stop [this script v]
end
Encode Player::custom
set [_i v] to (pick random (1) to (length of [Cloud Data v]::data))
if <(_i) \< [5]> then
if <(_i) \< [3]> then
if <(_i) \< [2]> then
set [☁ CLOUD1 v] to (parseStr)
else
set [☁ CLOUD2 v] to (parseStr)
end
else
if <(_i) \< [4]> then
set [☁ CLOUD3 v] to (parseStr)
else
set [☁ CLOUD4 v] to (parseStr)
end
end
else
if <(_i) \< [7]> then
if <(_i) \< [6]> then
set [☁ CLOUD5 v] to (parseStr)
else
set [☁ CLOUD6 v] to (parseStr)
end
else
if <(_i) \< [8]> then
set [☁ CLOUD7 v] to (parseStr)
else
if <(_i) \< [9]> then
set [☁ CLOUD8 v] to (parseStr)
else
set [☁ CLOUD9 v] to (parseStr)
end
end
end
end
if <not <(☁ version) = (gameversion)>> then
if <not <[PLAYER NAMES v] contains [griffpatch]?::data>> then
if <not <(username) = [griffpatch]>> then
set [gameversion v] to [STOP]
broadcast [Please Reload v]
end
end
end
Last edited by Jpizza115 (Jan. 6, 2023 00:42:24)
- CrazyBird3029
-
100+ posts
Official [scratchblocks] Testing Topic 6
say [what?] for (2) secs[scratchblocks]
define argosy media
move (14) steps
switch costume to [tree v]
[/scratchblocks]
- jjxiaomi
-
89 posts
Official [scratchblocks] Testing Topic 6
Here are the blocks:
when @StopSign clicked :: events
({reverse v} text []) :: operators
- jjxiaomi
-
89 posts
Official [scratchblocks] Testing Topic 6
define say: [text] for (timer) seconds
set [letter v] to (0)
set [speech v] to ()
repeat (length of [text]
change [letter v] by (1)
say (join [speech] (letter [letter] of [text])
set [speech v] to ((letter [letter] of [text])
start sound [voice v]
}