Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » ITopic: Everything you never knew about [scratchblocks]!
- MathlyCat
- Scratcher
1000+ posts
ITopic: Everything you never knew about [scratchblocks]!
I don't think he's the most active user anymore .-. 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.
Think before you act.
Actions speek louder than words.
hi there fella
Actions speek louder than words.
hi there fella
- Tropic
- Scratcher
1000+ posts
ITopic: Everything you never knew about [scratchblocks]!
Well, he's still on every once in a whileI don't think he's the most active user anymore .-. 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.
- monstermash3
- Scratcher
1000+ posts
ITopic: Everything you never knew about [scratchblocks]!
Really? Let me test this: 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.
test::custom cstartOh, yeah. It doesn't work.
end
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]!
Hi! ::cstart and ::cend no longer work.that did not show up like I expectedfor every [v v] in <> then
say [HI EVERYBODY THIS IS AN ACTUAL HACKED BLOCK PEOPLE GET]
endfor each [v v] in () :: cstarti'm cant fix it
say [HI EVERYBODY THIS IS AN ACTUAL HACKED BLOCK PEOPLE GET]
:: control cend
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
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:
And cend doesn't work..
<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]!
I agree 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?
- jokebookservice1
- Scratcher
1000+ posts
ITopic: Everything you never knew about [scratchblocks]!
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. 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?
- bokkiegirl
- Scratcher
35 posts
ITopic: Everything you never knew about [scratchblocks]!
I LOVE @springbok club
thank you…
@Harakou
thank you…
@Harakou
partycupcake
- HoofEMP
- Scratcher
100+ 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?
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]!
I agree with @jokebookservice1.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. 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?
(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]!
Yeah it's not like the ST are gonna magically make another update so I guess updating now is best.I agree with @jokebookservice1.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. 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?
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
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]!
if <((2) + (2)) = [5]> then
say [Freedom is slavery.]
else
say [Peace is war.]
end
if <(days since 2000) = [-5750]> thenFTFY.
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
I'm Nalholigy, a new Scratcher.
- MathlyCat
- Scratcher
1000+ posts
ITopic: Everything you never knew about [scratchblocks]!
Praise Big Brotherif <((2) + (2)) = [5]> then
say [Freedom is slavery.]
else
say [Peace is war.]
endif <(days since 2000) = [-5750]> thenFTFY.
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
Think before you act.
Actions speek louder than words.
hi there fella
Actions speek louder than words.
hi there fella
- Nalholigy
- New to Scratch
84 posts
ITopic: Everything you never knew about [scratchblocks]!
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 Praise Big Brother
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]!
It's been advertised by scratchblocks' creator, blob8108, so it can't be a secret. 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.
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:
makes
The only way to make your own C blocks now is to use curly braces {}, like this:
Second, directly because of this, curly braces {} don't work as block inputs anymore, see:
Third, to control the type of a “if – else – finally” block, you just put the :: at the end, like this:
Finally, here is a rewrite of @theonlygusti 's code, the way I think he meant it to be:
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]
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 {which (to me, since I've worked with JavaScript) makes a lot more sense.
...
} test celse {
...
} test cend
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@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!
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
post brought to you by the preview links bug and previously the uploads site bug. 看一下中文 Scratch 維基!想參加?請參考這頁。
- 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]!
inputs anymore, see:But you can still do something like; Second, directly because of this, curly braces {} don't work as block[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}
When {When gf clicked} clicked::events hat
[scratchblocks]
When {When gf clicked} clicked::events hat
[/scratchblocks]
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.
- Discussion Forums
- » Help with Scripts
- » ITopic: Everything you never knew about [scratchblocks]!