For example:
You can <test (Scratch blocks :: events)! :: sensing> :: control
You can <test (Scratch blocks :: events)! :: sensing> :: control
I must <test (Scratch blocks :: events)! :: sensing> :: control
3.0 blocks when ::events
set video transparency to () % // why does this exist
i hope people will not do <<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>
move (10) steps ::hat
when @greenFlag clicked {
stop [all v] ::stack
}
when video motion > (10) :: cap
swear word
when green flag clicked
say [the more you know :D]
when green flag clicked
stop [ ur nan]
when gf clicked
pen up
erase all
go to x: (0) y: (-154)
point in direction (0 v)
set pen color to [#5cbf12] // color for rendering tree
delete (all v) of [stack v]
set [depth v] to (6) // Here goes tree depth
set [tree_size v] to (60) // Here goes tree size
add (tree_size) to [stack v]
add [-1] to [stack v]
set [IP v] to (0)
repeat until <(IP) = (-1)>
if <not <(depth) = (0)>> then // Recursive stuff
if <(IP) = (0)> then
move (tree_size) steps
turn left (15) degrees
add (tree_size) to [stack v]
add [1] to [stack v]
set [tree_size v] to ((tree_size) * (0.75))
set [depth v] to ((depth) - (1))
else
if <(IP) = (1)> then
turn right (35) degrees
add (tree_size) to [stack v] // Push size and return address
add [2] to [stack v]
set [tree_size v] to ((tree_size) * (0.6))
set [depth v] to ((depth) - (1))
set [IP v] to (0) // Go to the code above
else
if <(IP) = (2)> then
turn left (20) degrees
move ((-1) * (tree_size)) steps
end
end
end
if <<(depth) = (0)> or <(IP) = (2)>> then // Return to caller
set [IP v] to (item (last v) of [stack v]) // Restore return address
delete (last v) of [stack v]
change [depth v] by (1)
set [tree_size v] to (item (last v) of [stack v])
delete (last v) of [stack v]
end
end
<div class="code"><pre></pre></div>
<a href="http://link"><b>Your text to link here<a href="http://link">&lt;b&gt;Your text to link here</a></a>
[]url=link]Your text to link here[]url=link]Your text to link here[]/url][]/url]
move () steps
[scratchblocks]
move () steps
when @stopSign clicked::events cat
add ({wow! a block!::pen cap} @addInput) to @list::list
forever
+move (10) steps
-turn cw (15) degrees
say [3.0 Scratchblocks on the forums!]
take a picture in [4K v]::video
end
block with image @turnRight inline :: extension
block with image @turnRight inline :: pen
2.0 blocks in the preview
test 😲