Snap [scratchblocks] Tutorial (Part 1)

thanks again

I think that this thread should be a sticky. It is really useful.

[scratchblocks] well...the p tag works, custom colors without using preformatted text ::#256 [/scratchblocks]

what is that?

[scratchblocks] Upvars look more like: :: block pen ( ( (foo) + (bar) ) input names: ((foo) :: variables) ((bar) :: variables) @delInput @addInput :: grey ring) [/scratchblocks]

This was seen before. Ask my cousin. Well, ya cant. It happens when u select rhe trxt of the scratch blocks and some outside of it.(do not end the scratch blocks. Get partial and partial.

it's

[scratchblocks] (((foo) + (bar)) input names: ((foo) :: grey) ((bar) :: grey) @delInput @addInput :: grey ring [/scratchblocks]

and here's an image from snap to show that I'm right
prototype script pic

Oh. I havent checked that. I mustve bennnusing rhat with custom variable blocks.
O well...

I just got really confused when I saw the quote...that I said?
0-0

How do i make a js function reporter scratchblock?
Or how to make "(", ")", "<", ">", "[", "]", "{" and "}" act as text

[scratchblocks] (JavaScript function \( [] @delInput @addInput \) \{ [] \} :: operators) [/scratchblocks]

(JavaScript function \( [] @delInput @addInput \) \{ [] \} :: operators)

use backslashes before the character to write them as text

how do I make scratchblocks with a multiline input?

I didn't know that. Thank you.

Popular edit formations!

How to make a scratchblock hat:

[scratchblocks]
[ENTER A NAME FOR YOUR HAT] :: events hat
[NAME THIS SCRIPT OR PUT A SCRIPT HERE] :: custom
[/scratchblocks]

How to make a c-shaped block:

[scratchblocks]
[NAME THIS BLOCK!] {[PUT SCRIPTS HERE IN THE C-SHAPE] :: custom} :: custom
[/scratchblocks]

How to ringify a block:

[scratchblocks]
({Run (JavaScript function ( [(block)] ) { [(ringify (block) define no error)] } :: operators) :: control} :: ring custom)
[/scratchblocks]

uh, yeah, but you never showed us how to do it.

for ring, do

[scratchblocks] ({run (JavaScript function \( [] @delInput @addInput \) \{ [] \} :: operators) :: control} :: grey ring) [/scratchblocks]

<p>[scratchblocks]
({run (JavaScript function \( [] @delInput @addInput \) \{ [] \} :: operators) :: control} :: grey ring)
[/scratchblocks]</p>

also, do do a c-shape, do

[scratchblocks] block { ...} :: control [/scratchblocks]

<p>[scratchblocks]
block {
...} :: control
[/scratchblocks]<p>

Y'all should use codification to translate Snap! code into scratchblocks code!

:partying_face:
Oh yeah! I've never thinked about that obvious solution!

how? I mean https://snap.berkeley.edu/snap/snap.html#present:Username=sathvikrias&ProjectName=scratchblocks

@18001767679 will show you. :~)

well, I actually started doing that, except I stopped because using codification, there's no way to tell if there's inputs for the run block or not, like there's no way to tell between

[scratchblocks] run {:: grey ring} @addInput :: control [/scratchblocks]

and

[scratchblocks] run {:: grey ring} with inputs [] @delInput @addInput :: control [/scratchblocks]