Discuss Scratch
- Discussion Forums
- » Announcements
- » New [scratchblocks] tag
- blob8108
-
1000+ posts
New [scratchblocks] tag
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.
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!
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!
Last edited by blob8108 (Feb. 23, 2015 12:50:06)
- Scratch12300
-
500+ posts
New [scratchblocks] tag
Awesome! Yeah, it's looks much better!
Oh yeah. They work!
So… First post!
EDIT: WOW OMG This thread has become popular! This is special to me!
<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!
Last edited by Scratch12300 (Aug. 31, 2013 10:51:29)
- Lightnin
-
1000+ posts
New [scratchblocks] tag
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.

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
-
500+ posts
New [scratchblocks] tag
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
-
1000+ posts
New [scratchblocks] tag
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
Last edited by davidkt (Aug. 30, 2013 21:39:07)
- ProdigyZeta7
-
1000+ posts
New [scratchblocks] tag
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
-
1000+ posts
New [scratchblocks] tag
Yeah, you were saying. Last time there was a large message and example below the post textbox, wasn't there? 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.
EDIT: I posted in Suggestions to hopefully get some ideas…
Last edited by blob8108 (Aug. 30, 2013 22:24:33)
- PhirripSyrrip
-
500+ posts
New [scratchblocks] tag
set [awesome_level v] to [9001]This really is a day of great updates for Scratch!
- davidkt
-
1000+ posts
New [scratchblocks] tag
Wait, you can add a tag to the forums without the ST's permission?
- Williamja
-
65 posts
New [scratchblocks] tag
wait until <scratchblocks exist>
try it out
get amazed
I am so adding scratchblocks in my signature
Last edited by Williamja (Aug. 30, 2013 22:10:00)
- blob8108
-
1000+ posts
New [scratchblocks] tag
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. Wait, you can add a tag to the forums without the ST's permission?

Last edited by blob8108 (Aug. 30, 2013 22:06:57)
- Epicness123
-
1000+ posts
New [scratchblocks] tag
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]
Last edited by Epicness123 (Aug. 30, 2013 22:07:59)
- davidkt
-
1000+ posts
New [scratchblocks] tag
Oh. I keep on forgetting thatNo. 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. Wait, you can add a tag to the forums without the ST's permission?
(item [nXIII v] of [scratch users v])is a moderator.
Edit: yup, I just KNEW that that bug would be there…
Last edited by davidkt (Aug. 30, 2013 22:15:52)
- blob8108
-
1000+ posts
New [scratchblocks] tag
Which bug? Edit: yup, I just KNEW that that bug would be there…
- clubpenguin552222
-
100+ posts
New [scratchblocks] tag
define Great!
say [Great!] for (2) secs
stop [nothing v]
<>=Sprite
/Great!
<>/
Last edited by clubpenguin552222 (Aug. 30, 2013 22:26:44)
- Discussion Forums
- » Announcements
-
» New [scratchblocks] tag