Snap [scratchblocks] Tutorial (Part 1)

that's what the [] as text block does in BYOB

oh, ok.

I think the byob block isn't 100% the same as

but for some reason the developers missed something. they added the block so scratch 1.4 was fully compatible with BYOB.

Really? [scratchblocks] When < > ::hat events[/scratchblocks]
I didn't use what the OP said, I used it how you normally would in Scratch.

i dont understand
did you not read the topic? what do you mean by "how you normally would in scratch"?
if youre just asking about the <p> tags, yes, you do need to use those for the scratchblocks to function properly in the forum.

I guess you've never used the Scratch forums.
[scratchblocks]
When flag clicked
Say [use the forums on Scratch]
[/scratchblocks]
As you can see, I used it how you would normally use the BBCode extension on Scratch, via using regular [scratchblocks] tags. No need for <p>

Yes but you do need it on the Snap! forums. Look at this:
without p tags
[scratchblocks]
(crossproduct ((lists...)::list)::list)::control hat
if <is (lists) empty?::list>{
report (list (list @addInput::list)@addInput::list)::control cap
}::control
script variables ((small)::grey)@addInput::grey
set [small v]to (crossproduct input list: (all but first of (lists)::list)::list)
report (append input list: (map ((map (((newitem) in front of (tail)::list) input names: ((tail)::grey)@delInput@addInput::grey ring) over (small)::list) input names: ((newitem)::grey)@delInput@addInput::grey ring) over (item (1 v) of (lists))::list)::list)::control cap
[/scratchblocks]
with p tags

[scratchblocks] (crossproduct ((lists...)::list)::list)::control hat if { report (list (list @addInput::list)@addInput::list)::control cap }::control script variables ((small)::grey)@addInput::grey set [small v]to (crossproduct input list: (all but first of (lists)::list)::list) report (append input list: (map ((map (((newitem) in front of (tail)::list) input names: ((tail)::grey)@delInput@addInput::grey ring) over (small)::list) input names: ((newitem)::grey)@delInput@addInput::grey ring) over (item (1 v) of (lists))::list)::list)::control cap [/scratchblocks]

yeah, you need to add <p> for the scratchblocks to not be changed in to the "nonsense".

and have you tried

[scratchblocks] press @greenFlag [/scratchblocks]

you only need the <p> tags when you are adding symbols to your scratchblocks, like addInputs

[scratchblocks] {{say [hello]} @addInput :: grey ring} [/scratchblocks]

[scratchblocks] press flag [/scratchblocks]

Even when using <p> it will still be red unless you use ::events on it

that doesn't work.

how about showing the green flag symbol.

this is what happens without the <p> tags

[scratchblocks]
press @greenFlag
[/scratchblocks]

and this is what happens with the <p> tags

[scratchblocks] press @greenFlag [/scratchblocks]

notice the difference?

(I'm just showing the flag symbol, not the block colors)

flag doesn't even popup
not like quotes would work because

Blockquote

wait really? you can't see the flag symbol?

I can't. It only does the popup with [scratchblocks] when flag clicked[/scratchblocks]

[scratchblocks] when flag clicked [/scratchblocks]

even with

[scratchblocks] press flag [/scratchblocks]

[scratchblocks] press flag [/scratchblocks]

oh hey no max replies.

[scratchblocks]
press @greenFlag
[/scratchblocks]
oh- but its not like that in Scratch. I thought I had it clear I was from Scratch, oh well.

use @greenFlag

I don't get it. Everyone else can see the flag symbol

[scratchblocks] @greenFlag [/scratchblocks]

<p>[scratchblocks]
@greenFlag 
[/scratchblocks]</p>

Use “⌸” for lists:

[scratchblocks] add[thing]to ⌸::list [/scratchblocks]

Huh, I’m sure this was possible once upon a time. Maybe it was a bit of code I took out, because it didn’t fit right with vanilla Scratch support.

Probably something I could write a patch for, if the code here bears any resemblance to what I wrote! :stuck_out_tongue:

Welcome back to the forums!
(why was your profile broken, and how was it fixed?)