blob8108

Good afternoon!

On the old forums, you could write out scripts between [scratchblocks][/scratchblocks] tags.

We've now re-implemented the scratchblocks tag using a brand new plugin that I've been developing. It has the same syntax as the original block plugin, with some minor improvements and bugfixes.
[scratchblocks]
define dance (speed)
set [dist v] to ((speed) * (distance to [mouse-pointer v]))
repeat until <(timer) > [10]>
move (dist) steps
play note (42 v) for (0.5) beats
say [Wow! Scratch 2.0 scripts in the forums!]
end
[/scratchblocks]
define dance (speed)
set [dist v] to ((speed) * (distance to [mouse-pointer v]))
repeat until <(timer) > [10]>
move (dist) steps
play note (42 v) for (0.5) beats
say [Wow! Scratch 2.0 scripts in the forums!]
end

Help on writing the code can be found on the wiki.

You can test out the plugin on the test page. Please don't spam the forums with blocks!

(Thanks to nXIII for writing the glue code that hooks the plugin into the forums!)

EDIT: the test page moved!

Scratch12300

Awesome! Yeah, it's looks much better!

<scratchblocks reimplimented?>//true
(knowen glitches)//Boolean shape not diamond

when gf clicked
forever
if <(length of [knowen glitches v]) < [5]> then
if <necessary> then
use scratchblocks
end

Oh yeah. They work!

when gf clicked
forever
if <thread will become popular> then
post [First post!]
end

So… First post!

EDIT: WOW OMG This thread has become popular! This is special to me!

Lightnin

w00t! Thanks for all your effort, blob8108! This is an awesome feature.

Next: We need to figure out a really nice way to show new users how to use it, preferably right in the forum post writing interface.

mrsrec

Lightnin wrote:

w00t! Thanks for all your effort, blob8108! This is an awesome feature.

Next: We need to figure out a really nice way to show new users how to use it, preferably right in the forum post writing interface.

I Guess. And You Moved This To Announcements?

davidkt

Yay!
when gf clicked
say [I'm glad to have the old scratchblocks tag back! :D]
repeat (10)
change y by (10)
wait (0.125) secs
change y by (-10)
wait (0.125) secs
end

mrsrec

say [I Guess The Syntax Works.]

ProdigyZeta7

when I receive [New update! Scratchblock tags! v]
say [THANK YOU SO MUCH!] for (5) secs
change [posts v] by (1)
change [awesomeness v] by (9001)
broadcast [Spread the news! v] and wait

I had to.

blob8108

Lightnin wrote:

We need to figure out a really nice way to show new users how to use it, preferably right in the forum post writing interface.
Yeah, you were saying. Last time there was a large message and example below the post textbox, wasn't there?

EDIT: I posted in Suggestions to hopefully get some ideas…

jvvg

I've created a testing topic.

PhirripSyrrip

set [awesome_level v] to [9001]
This really is a day of great updates for Scratch!

joshuaho

YAAAAAAAAAAAYYYY!!! Finally!

davidkt

Wait, you can add a tag to the forums without the ST's permission?

Williamja

wait until <scratchblocks exist>
try it out
get amazed

I am so adding scratchblocks in my signature

blob8108

davidkt wrote:

Wait, you can add a tag to the forums without the ST's permission?
No. I wrote the plugin, nXIII implemented the tag (hooked the plugin into the forums), and Lightnin/the ST deployed the new code to the forums.

Epicness123

Define "we"
say [A person and another person will do the same thing.] for (3) secs
if <second person leaves?>
say [WHERE DID YOU GO?!?!]
end
broadcast [OH NOES v]
stop [playing v]

when [OH NOES was received? v]
pwn the police officers
stop [the police officers from arresting you v]

davidkt

blob8108 wrote:

davidkt wrote:

Wait, you can add a tag to the forums without the ST's permission?
No. I wrote the plugin, nXIII implemented the tag (hooked the plugin into the forums), and Lightnin/the ST deployed the new code to the forums.
Oh. I keep on forgetting that
(item [nXIII v] of [scratch users v])
is a moderator.
Edit: yup, I just KNEW that that bug would be there…

clubpenguin552222

 
Yay!

Williamja

I just love these red blocks!!! :D

blob8108

davidkt wrote:

Edit: yup, I just KNEW that that bug would be there…
Which bug?

clubpenguin552222

define Great!
say [Great!] for (2) secs
stop [nothing v]

<>=Sprite

/Great!
<>/