Discuss Scratch

MathlyCat
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

Jonathan50 wrote:

Can you update this? There's a new syntax for custom C blocks, and predicates are now diamond shaped. And you can set blocks to any color.
I don't think he's the most active user anymore .-.

Think before you act.
Actions speek louder than words.

hi there fella
Tropic
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

MathlyCat wrote:

Jonathan50 wrote:

Can you update this? There's a new syntax for custom C blocks, and predicates are now diamond shaped. And you can set blocks to any color.
I don't think he's the most active user anymore .-.
Well, he's still on every once in a while



My browser / operating system: Windows NT 10.0, Firefox 40.0.2, Flash 20.0 (release 0)
Last eaten by Evil Kumquat (Today 19:30:11)
when I receive [flash_player_version] :: motion
say [Windows 7, Flash 15.0 (release 0)] :: sensing
stop script :: custom
Tropical Productions
monstermash3
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

Jonathan50 wrote:

Can you update this? There's a new syntax for custom C blocks, and predicates are now diamond shaped. And you can set blocks to any color.
Really? Let me test this:
test::custom cstart
end
Oh, yeah. It doesn't work.

Edit: Okay, I think I got it. Let me try again:
test{
}::custom

Last edited by monstermash3 (July 24, 2016 21:27:34)


(Swallowed by an evil kumquat who was just taking a walk in the neighborhood of evil kumquats when they saw a garage sale where they bought a plate which they used to eat but they discovered that it leaked and they went to get their money back but the sale was over so they went in the house but the door was locked so they got their key but it didn't fit so they went home to use the key on the right door which was their own door and then they decided to swallow a signature for no reason.)
jokebookservice1
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

VMan_2002 wrote:

DWindsor49 wrote:

DWindsor49 wrote:

for every [v v] in <> then

say [HI EVERYBODY THIS IS AN ACTUAL HACKED BLOCK PEOPLE GET]
end
that did not show up like I expected
for each [v v] in () :: cstart

say [HI EVERYBODY THIS IS AN ACTUAL HACKED BLOCK PEOPLE GET]
:: control cend
i'm cant fix it
Hi! ::cstart and ::cend no longer work.

This is because the version was updated. The new syntax is:
for each [v v] in () {
say [HI EVERYBODY THIS IS AN ACTUAL HACKED BLOCK PEOPLE GET]
} ::control
which, after encolsing in [scratchblocks] tags you get:
for each [v v] in () {
say [HI EVERYBODY THIS IS AN ACTUAL HACKED BLOCK PEOPLE GET]
} ::control

Last edited by jokebookservice1 (Aug. 30, 2016 08:21:00)

CoderOwl
Scratcher
30 posts

ITopic: Everything you never knew about [scratchblocks]!

Update:
<touching [Mouse v]?>
is hexagonal! Woohoo!
And cend doesn't work..

<<<<<<<<<<<<<<<<<<3D effect!:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>:: motion>
Harakou
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

So, it's been brought to my attention that there's a lot of Scratchblock spam/testing in here. That kind of leaves us with the option of either more aggressively moderating the topic or just cleaning it out and closing it. The former would be more work for us and we'd need the people in this thread to report stuff so we could know to remove it. Do people here think that there's enough discussion in the thread to make that worthwhile?
MClovers
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

Harakou wrote:

So, it's been brought to my attention that there's a lot of Scratchblock spam/testing in here. That kind of leaves us with the option of either more aggressively moderating the topic or just cleaning it out and closing it. The former would be more work for us and we'd need the people in this thread to report stuff so we could know to remove it. Do people here think that there's enough discussion in the thread to make that worthwhile?
I agree

President of Scratch ShopBux
jokebookservice1
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

Harakou wrote:

So, it's been brought to my attention that there's a lot of Scratchblock spam/testing in here. That kind of leaves us with the option of either more aggressively moderating the topic or just cleaning it out and closing it. The former would be more work for us and we'd need the people in this thread to report stuff so we could know to remove it. Do people here think that there's enough discussion in the thread to make that worthwhile?
Well, with the change from scratchblocks2 to scratchblocks3, the OP needs to be updated. Once that happens, there really isn't much discussion around here, just spam, and people saying to others not to spam. Once the OP is updated, I think you should close it.
bokkiegirl
Scratcher
35 posts

ITopic: Everything you never knew about [scratchblocks]!

I LOVE @springbok club




thank you…
@Harakou


partycupcake
HoofEMP
Scratcher
100+ posts

ITopic: Everything you never knew about [scratchblocks]!

Harakou wrote:

So, it's been brought to my attention that there's a lot of Scratchblock spam/testing in here. That kind of leaves us with the option of either more aggressively moderating the topic or just cleaning it out and closing it. The former would be more work for us and we'd need the people in this thread to report stuff so we could know to remove it. Do people here think that there's enough discussion in the thread to make that worthwhile?

Perhaps you can just ask OP to update the syntax and then lock the topic?

Last edited by HoofEMP (Nov. 14, 2016 01:12:16)



monstermash3
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

jokebookservice1 wrote:

Harakou wrote:

So, it's been brought to my attention that there's a lot of Scratchblock spam/testing in here. That kind of leaves us with the option of either more aggressively moderating the topic or just cleaning it out and closing it. The former would be more work for us and we'd need the people in this thread to report stuff so we could know to remove it. Do people here think that there's enough discussion in the thread to make that worthwhile?
Well, with the change from scratchblocks2 to scratchblocks3, the OP needs to be updated. Once that happens, there really isn't much discussion around here, just spam, and people saying to others not to spam. Once the OP is updated, I think you should close it.
I agree with @jokebookservice1.

(Swallowed by an evil kumquat who was just taking a walk in the neighborhood of evil kumquats when they saw a garage sale where they bought a plate which they used to eat but they discovered that it leaked and they went to get their money back but the sale was over so they went in the house but the door was locked so they got their key but it didn't fit so they went home to use the key on the right door which was their own door and then they decided to swallow a signature for no reason.)
MathlyCat
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

monstermash3 wrote:

jokebookservice1 wrote:

Harakou wrote:

So, it's been brought to my attention that there's a lot of Scratchblock spam/testing in here. That kind of leaves us with the option of either more aggressively moderating the topic or just cleaning it out and closing it. The former would be more work for us and we'd need the people in this thread to report stuff so we could know to remove it. Do people here think that there's enough discussion in the thread to make that worthwhile?
Well, with the change from scratchblocks2 to scratchblocks3, the OP needs to be updated. Once that happens, there really isn't much discussion around here, just spam, and people saying to others not to spam. Once the OP is updated, I think you should close it.
I agree with @jokebookservice1.
Yeah it's not like the ST are gonna magically make another update so I guess updating now is best.

And if the OTP can't edit it someone else will make a guide

Think before you act.
Actions speek louder than words.

hi there fella
IMPULSS
Scratcher
100+ posts

ITopic: Everything you never knew about [scratchblocks]!

I think it's important to point out that you can see how your scratchblocks are going to come out here
http://scratchblocks.github.io/
That way your blocks won't come out looking strange on the forums…

([this makes no sense v] :: #CCC stack ring)
Nalholigy
New to Scratch
84 posts

ITopic: Everything you never knew about [scratchblocks]!

theonlygusti wrote:

if <((2) + (2)) = [5]> then
say [Freedom is slavery.]
else
say [Peace is war.]
end
if <(days since 2000) = [-5750]> then
read [War is peace.]::looks
read [Freedom is slavery.]::looks
read [Ignorance is strength.]::looks
else
narrate [it was never possible nowadays to pin down any date within a year or two.]::looks
end
FTFY.

I'm Nalholigy, a new Scratcher.
MathlyCat
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

Nalholigy wrote:

theonlygusti wrote:

if <((2) + (2)) = [5]> then
say [Freedom is slavery.]
else
say [Peace is war.]
end
if <(days since 2000) = [-5750]> then
read [War is peace.]::looks
read [Freedom is slavery.]::looks
read [Ignorance is strength.]::looks
else
narrate [it was never possible nowadays to pin down any date within a year or two.]::looks
end
FTFY.
Praise Big Brother

Think before you act.
Actions speek louder than words.

hi there fella
Nalholigy
New to Scratch
84 posts

ITopic: Everything you never knew about [scratchblocks]!

MathlyCat wrote:

Praise Big Brother
TBH, I've only read the first nine pages of the book. I'm guessing 2 + 2 = 5 takes place somewhere in it and I was wrong to remove it

Down With Big Brother.

[/offtopic][topic]Buuut back on topic, you can also set the colour of the scratchblocks to whatever you want! I don't really want to share it here because it's probably the only aspect of scratchblocks that can still be kept a secret.

I like thinking I'm part of a secret society

I'm Nalholigy, a new Scratcher.
Jonathan50
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

Nalholigy wrote:

I don't really want to share it here because it's probably the only aspect of scratchblocks that can still be kept a secret.
It's been advertised by scratchblocks' creator, blob8108, so it can't be a secret.

Not yet a Knight of the Mu Calculus.
kenny2scratch
Scratcher
500+ posts

ITopic: Everything you never knew about [scratchblocks]!

Hey!

The scratchblocks plugin has been updated since this topic was started, so I'll give you a few updates:

First, cstart, celse and cend seem not to have any effect anymore. Take a look:
[scratchblocks]
test cstart :: cstart
...
test celse :: celse
...
test cend :: cend
[/scratchblocks]
makes
test cstart :: cstart
...
test celse :: celse
...
test cend :: cend
.
The only way to make your own C blocks now is to use curly braces {}, like this:
[scratchblocks]
test cstart {
...
} test celse {
...
} test cend
[/scratchblocks]
test cstart {
...
} test celse {
...
} test cend
which (to me, since I've worked with JavaScript) makes a lot more sense.

Second, directly because of this, curly braces {} don't work as block inputs anymore, see:
[scratchblocks]
here is a block with what used to be a block input {block}
[/scratchblocks]
here is a block with what used to be a block input {block}
so instead. you can actually use parentheses () and inside them specify that the input is a block!
[scratchblocks]
here is a block with what is now a block input (block :: stack) :: control // 'cause I want to differentiate the colors
[/scratchblocks]
here is a block with what is now a block input (block :: stack) :: control // 'cause I want to differentiate the colors

Third, to control the type of a “if – else – finally” block, you just put the :: at the end, like this:
[scratchblocks]
test cstart {
...
} test celse {
...
} test cend :: control
[/scratchblocks]
test cstart {
...
} test celse {
...
} test cend :: control

Finally, here is a rewrite of @theonlygusti 's code, the way I think he meant it to be:
[scratchblocks]
when gf clicked :: operators hat
wait until (this block :: looks stack) turns purple {
say hi! :: sound stack
} and then {
use the colors {
to make life :: motion stack
} :: custom-arg
} finally :: extension
stop :: grey cap
[/scratchblocks]
when gf clicked :: operators hat
wait until (this block :: looks stack) turns purple {
say hi! :: sound stack
} and then {
use the colors {
to make life :: motion stack
} :: custom-arg
} finally :: extension
stop :: grey cap
@theonlygusti , I respect you for being the only one I've found that actually deliberately explained all the scratchblocks techniques. Here is an update for everyone who reads this topic!

post brought to you by the preview links bug and previously the uploads site bug. 看一下中文 Scratch 維基想參加?請參考這頁
Join the Scratch Wiki!
Made by Scratchers, for Scratchers, since December 6, 2008

dawidkrainski
Scratcher
100+ posts

ITopic: Everything you never knew about [scratchblocks]!

Also, don't forget about special symbols
When I have @greenFlag :: hat control
spin @turnRight @turnLeft :: motion
run [/nothing/] without inputs but with arrows @delInput @addInput :: control
[scratchblocks]
When I have @greenFlag :: hat control
spin @turnRight @turnLeft :: motion
run [/nothing/] without inputs but with arrows @delInput @addInput :: control
[/scratchblocks]
duckboycool
Scratcher
1000+ posts

ITopic: Everything you never knew about [scratchblocks]!

kenny2scratch wrote:

Second, directly because of this, curly braces {} don't work as block inputs anymore, see:
[scratchblocks]
here is a block with what used to be a block input {block}
[/scratchblocks]
here is a block with what used to be a block input {block}

But you can still do something like;
When {When gf clicked} clicked::events hat
[scratchblocks]
When {When gf clicked} clicked::events hat
[/scratchblocks]
To make them go inside other blocks.

Last edited by duckboycool (Dec. 29, 2016 17:05:36)


I used to be active on the forums, but I have mostly moved past Scratch. I still do check my Scratch messages, so if you'd like to talk to me, just leave a comment on my profile. My main project on Scratch was Cookie Clicker, but my newest project is Snake Snake, a game based off of Snake, but with two snakes, and you can play either singleplayer or multiplayer.

Powered by DjangoBB