Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » [scratchblocks] OFFICIAL testing topic
#2261May 5, 2017 22:06:37
- 78ch3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
This is not the place for getting help with scripts. This is a place for testing the scratchblocks BBcode plugin. I will get a ST member to move this to the Help with Scripts forum. I think i posted here yesterday but didnt really explain myself properly. i cant share my code here so il have to explain it as best i can. Im trying to to write a code that will ask the user for an input, whether want circles, squares or both. so i got the variables down for both the circle and square. and only one sprite with 2 of the circle and square costumes. the place im stuck at is, after the script is started and the user has entered ‘b’ for both circles and squares and its gone past the ‘if (shape=<c>)’ and ‘if (shape=<s>)’, thats cool, because they want both shapes! so now i want to be able to produce both circle and square costumes for my sprite to print out based on the monitored sound level (which ive sorted out already) please help if you get my predicament.
BTW I get your ‘predicament’, if it can be called that. Can't help you at the moment.
This is in the wrong forum :: events hat
So an ST member will move it to another forum :: motion stack
Forever
Imagine :: looks stack
Program :: control stack
Share :: sensing stack
End
#2262May 5, 2017 22:12:03
- Burza27
-
5 posts
[scratchblocks] OFFICIAL testing topic
If you get my ‘predicament’ a little help here wouldnt take long.
#2263May 5, 2017 22:13:36
- 78ch3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
Sorry, but this is a place for testing scratchblocks, not for getting help. Plus I said I can't help you at the moment. If you get my ‘predicament’ a little help here wouldnt take long.
Last edited by 78ch3 (May 5, 2017 22:14:29)
#2264May 5, 2017 23:44:27
- Penguin5664
-
100+ posts
[scratchblocks] OFFICIAL testing topic
For everyone but Burza27: I think i posted here yesterday but didnt really explain myself properly. i cant share my code here so il have to explain it as best i can. Im trying to to write a code that will ask the user for an input, whether want circles, squares or both. so i got the variables down for both the circle and square. and only one sprite with 2 of the circle and square costumes. the place im stuck at is, after the script is started and the user has entered ‘b’ for both circles and squares and its gone past the ‘if (shape=<c>)’ and ‘if (shape=<s>)’, thats cool, because they want both shapes! so now i want to be able to produce both circle and square costumes for my sprite to print out based on the monitored sound level (which ive sorted out already) please help if you get my predicament.
I DONT CARE IF THIS IS NOT A HELPING PAGE, I WILL HELP EVERYONE!!!
Okay, I've got it, but I need more details : Uses an Ask block? If it does, then you might want to set the “shape” variable to the answer, like this:
when gf clicked
broadcast [Run v]
when I receive [Run v]
go to x:(0) y:(0) // The "clear" block thing was useless because you didn't stamped something...
ask [shape?] and wait
set [shape v] to (answer) // This may be the missing block?
if <(shape)=[o]> then
switch costume to [shape1 v]
end
if <(shape)=[s]> then
switch costume to [shape2 v]
end
if <(shape)=[b]> then
switch costume to [shape3 v]
end
if <not <<(shape)=[o]> or <<(shape)=[s]> or <(shape)=[b]>>>> then
say [Non-valid shape!] for (2) secs
broadcast [Run v]
end
I hope this script helped.

#2265May 6, 2017 00:10:24
- dovelie_justice
-
100+ posts
[scratchblocks] OFFICIAL testing topic
when green flag clicked
point towards [AWESOMENESS v]
play sound [OH! v]
set pen color to [#85927b]
if <[@dovelie_justice] = [#1 Harry Potter Fan!]> then
say [HARRY POTTER FOREVER YAAAAAA]
end
This colour is sooo cute! ::#ff00cc
#2266May 6, 2017 00:13:14
- Penguin5664
-
100+ posts
[scratchblocks] OFFICIAL testing topic
If you're familiar with the [scratchblocks] plugin, please dont post there. Thanks!when green flag clicked
point towards [AWESOMENESS v]
play sound [OH! v]
set pen color to [#85927b]
if <[@dovelie_justice] = [#1 Harry Potter Fan!]> then
say [HARRY POTTER FOREVER YAAAAAA]
endThis colour is sooo cute! ::#ff00cc

#2267May 6, 2017 00:30:05
- 78ch3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
Just do Scratch
This seems to be the wrong forum for chat :: #11ea66 hat
So get scratching! :: #000000
This text is invisible. Penguin5664 tried to gang up on me with another scratcher. :: #ffffff
Penquin5664: you will never know what is in my invisible text :: #660000
78ch3 is AWESOME! :: #669999
Coloured block! :: #55ee11
This is fun. So do this: :: #4411f0
Imagine :: sound stack
Program :: operators stack
Share :: sensing stack
ZZ9PluralZAlpha is <fun::operators Boolean >:: looks cap
#2268May 6, 2017 00:32:37
- Penguin5664
-
100+ posts
[scratchblocks] OFFICIAL testing topic
Stop block-spamming. Just do ScratchThis seems to be the wrong forum for chat :: #11ea66 hat
So get scratching! :: #000000
This text is invisible. Penguin5664 tried to gang up on me with another scratcher. :: #ffffff
Penquin5664: you will never know what is in my invisible text :: #660000
78ch3 is AWESOME! :: #669999
Coloured block! :: #55ee11
This is fun. So do this: :: #4411f0
Imagine :: sound stack
Program :: operators stack
Share :: sensing stack
ZZ9PluralZAlpha is <fun::operators Boolean >:: looks cap
Also, I could read what was the “invisible” (That was actually a white block covering the white text) text. Only highlight it, there it is:
“This text is invisible. Penguin5664 tried to gang up on me with another scratch”
But I didn't even understood the “with another scratch”, did you mean “scratcher”?
EDIT: Can't you even close a tag? It causes problems in quotes!
Last edited by Penguin5664 (May 6, 2017 00:35:36)
#2269May 6, 2017 01:00:37
- yiming123
-
30 posts
[scratchblocks] OFFICIAL testing topic
when green flag clicked
set [ awsome] to [yes]
#2270May 6, 2017 01:01:37
- yiming123
-
30 posts
[scratchblocks] OFFICIAL testing topic
when green flag clicked
forever
(imagine)
(program)
(share)
end
#2271May 6, 2017 01:37:53
- monstermash3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
[#000000][#000000][#000000][#000000][#000000][#ffffff][#ffffff][#ffffff][#000000][#ffffff][#ffffff][#ffffff][#000000][#000000][#000000][#000000][#000000]::#000000
[#000000][#000000][#000000][#000000][#000000][#ffffff][#000000][#000000][#000000][#ffffff][#000000][#ffffff][#000000][#000000][#000000][#000000][#000000]::#000000
[#000000][#000000][#000000][#000000][#000000][#ffffff][#ffffff][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#000000][#000000][#000000][#000000]::#000000
[#000000][#000000][#000000][#000000][#000000][#000000][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#000000][#000000][#000000][#000000]::#000000
[#000000][#000000][#000000][#000000][#000000][#ffffff][#ffffff][#ffffff][#000000][#ffffff][#ffffff][#ffffff][#000000][#000000][#000000][#000000][#000000]::#000000
[#ffffff][#000000][#000000][#000000][#ffffff][#000000][#000000][#000000][#ffffff][#000000][#000000][#000000][#ffffff][#000000][#ffffff][#ffffff][#ffffff]::#ffffff
[#ffffff][#000000][#ffffff][#ffffff][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#ffffff][#ffffff]::#ffffff
[#ffffff][#000000][#ffffff][#ffffff][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#ffffff][#ffffff]::#ffffff
[#ffffff][#000000][#ffffff][#ffffff][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#ffffff][#ffffff]::#ffffff
[#ffffff][#000000][#000000][#000000][#ffffff][#000000][#000000][#000000][#ffffff][#000000][#000000][#000000][#ffffff][#000000][#000000][#000000][#ffffff]::#ffffff
#2272May 6, 2017 02:56:56
- XCat
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
forever
scratch: #ff0000
imagine: #ff8000
program: #ffff00
share: #00ff00
end
#2273May 6, 2017 05:44:04
- Johan3537
-
100+ posts
[scratchblocks] OFFICIAL testing topic
I did see your posts. I think i posted here yesterday but didnt really explain myself properly. i cant share my code here so il have to explain it as best i can. Im trying to to write a code that will ask the user for an input, whether want circles, squares or both. so i got the variables down for both the circle and square. and only one sprite with 2 of the circle and square costumes. the place im stuck at is, after the script is started and the user has entered ‘b’ for both circles and squares and its gone past the ‘if (shape=<c>)’ and ‘if (shape=<s>)’, thats cool, because they want both shapes! so now i want to be able to produce both circle and square costumes for my sprite to print out based on the monitored sound level (which ive sorted out already) please help if you get my predicament.
when green flag clicked
point in direction (90 v)
forever
Dance :: custom
end
define Dance
repeat (25)
turn cw (45) degrees
end
point in direction (90 v)
Dance 2 :: custom
define Dance 2
forever
next costume
wait (0.5) secs
end
https://vignette2.wikia.nocookie.net/clubpenguin/images/6/6e/Penguin_Cup_2014_Emoticons_Woo_hoo.gif/revision/latest?cb=20140619115523
#2274May 6, 2017 10:00:50
- 78ch3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
when green flag clicked
Start [Minecraft Pocket Edition 1.0.3 v] :: extension stack
Activate [Extrose Hacker v] :: extension stack
Start [All Programs v] :: Extension stack
Deactivate [Programs 10e, 50os, 25ee v] :: extension stack
if <Programs Complete :: extension boolean> then
Stop [Extrose Hacker v] :: extension stack
Play [Minecraft Pocket Edition 1.0.3 v] :: extension stack
end
#2275May 6, 2017 10:09:05
- 78ch3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
Stop block-spamming. Just do ScratchThis seems to be the wrong forum for chat :: #11ea66 hat
So get scratching! :: #000000
This text is invisible. Penguin5664 tried to gang up on me with another scratcher. :: #ffffff
Penquin5664: you will never know what is in my invisible text :: #660000
78ch3 is AWESOME! :: #669999
Coloured block! :: #55ee11
This is fun. So do this: :: #4411f0
Imagine :: sound stack
Program :: operators stack
Share :: sensing stack
ZZ9PluralZAlpha is <fun::operators Boolean >:: looks cap
Also, I could read what was the “invisible” (That was actually a white block covering the white text) text. Only highlight it, there it is:
“This text is invisible. Penguin5664 tried to gang up on me with another scratch”
But I didn't even understood the “with another scratch”, did you mean “scratcher”?
EDIT: Can't you even close a tag? It causes problems in quotes!
1: yes. I meant scratcher.
2: I'm not block-spamming. I'm testing scratchblocks.
3: how did you see my text? I couldn't see it so you couldn't see it!
#2276May 6, 2017 10:10:18
- Johan3537
-
100+ posts
[scratchblocks] OFFICIAL testing topic
you go to quote and and then you see the code, duh..Stop block-spamming. Just do ScratchThis seems to be the wrong forum for chat :: #11ea66 hat
So get scratching! :: #000000
This text is invisible. Penguin5664 tried to gang up on me with another scratcher. :: #ffffff
Penquin5664: you will never know what is in my invisible text :: #660000
78ch3 is AWESOME! :: #669999
Coloured block! :: #55ee11
This is fun. So do this: :: #4411f0
Imagine :: sound stack
Program :: operators stack
Share :: sensing stack
ZZ9PluralZAlpha is <fun::operators Boolean >:: looks cap
Also, I could read what was the “invisible” (That was actually a white block covering the white text) text. Only highlight it, there it is:
“This text is invisible. Penguin5664 tried to gang up on me with another scratch”
But I didn't even understood the “with another scratch”, did you mean “scratcher”?
EDIT: Can't you even close a tag? It causes problems in quotes!
1: yes. I meant scratcher.
2: I'm not block-spamming. I'm testing scratchblocks.
3: how did you see my text? I couldn't see it so you couldn't see it!

#2277May 6, 2017 10:12:10
- 78ch3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
when green flag clicked
Start [Minecraft Pocket Edition 1.0.3 v] :: extension stack
Activate [Extrose Hacker v] :: extension stack
Start [All Programs v] :: extension stack
Deactivate [Programs 10e, 50os, 25ee v] :: extension stack
if <Programs Complete :: extension boolean> then
Stop [Extrose Hacker v] :: extension stack
Play [Minecraft Pocket Edition 1.0.3 v] :: extension stack
end
#2278May 6, 2017 10:14:28
- 78ch3
-
1000+ posts
[scratchblocks] OFFICIAL testing topic
you go to quote and and then you see the code, duh..Stop block-spamming. Just do ScratchThis seems to be the wrong forum for chat :: #11ea66 hat
So get scratching! :: #000000
This text is invisible. Penguin5664 tried to gang up on me with another scratcher. :: #ffffff
Penquin5664: you will never know what is in my invisible text :: #660000
78ch3 is AWESOME! :: #669999
Coloured block! :: #55ee11
This is fun. So do this: :: #4411f0
Imagine :: sound stack
Program :: operators stack
Share :: sensing stack
ZZ9PluralZAlpha is <fun::operators Boolean >:: looks cap
Also, I could read what was the “invisible” (That was actually a white block covering the white text) text. Only highlight it, there it is:
“This text is invisible. Penguin5664 tried to gang up on me with another scratch”
But I didn't even understood the “with another scratch”, did you mean “scratcher”?
EDIT: Can't you even close a tag? It causes problems in quotes!
1: yes. I meant scratcher.
2: I'm not block-spamming. I'm testing scratchblocks.
3: how did you see my text? I couldn't see it so you couldn't see it!
Number three was a prank. I know how to see code. I've done it before.
I HAVE JUST DONE MY 50TH QUOTE!
I have also 24 non-quote posts. I'm pretty active on the forums.
I have officially stopped using scratchblocks: OFFICIAL Testing Topic so I will delete all messages on this topic when I become a scratcher. JUST KIDDING!
Last edited by 78ch3 (May 28, 2017 22:06:10)
#2279May 6, 2017 10:19:32
- Johan3537
-
100+ posts
[scratchblocks] OFFICIAL testing topic
Woah, Woah, Calm Down!you go to quote and and then you see the code, duh..Stop block-spamming. Just do ScratchThis seems to be the wrong forum for chat :: #11ea66 hat
So get scratching! :: #000000
This text is invisible. Penguin5664 tried to gang up on me with another scratcher. :: #ffffff
Penquin5664: you will never know what is in my invisible text :: #660000
78ch3 is AWESOME! :: #669999
Coloured block! :: #55ee11
This is fun. So do this: :: #4411f0
Imagine :: sound stack
Program :: operators stack
Share :: sensing stack
ZZ9PluralZAlpha is <fun::operators Boolean >:: looks cap
Also, I could read what was the “invisible” (That was actually a white block covering the white text) text. Only highlight it, there it is:
“This text is invisible. Penguin5664 tried to gang up on me with another scratch”
But I didn't even understood the “with another scratch”, did you mean “scratcher”?
EDIT: Can't you even close a tag? It causes problems in quotes!
1: yes. I meant scratcher.
2: I'm not block-spamming. I'm testing scratchblocks.
3: how did you see my text? I couldn't see it so you couldn't see it!
Number three was a prank. I know how to see code. I've done it before.
I HAVE JUST DONE MY 50TH QUOTE!
I have also 24 non-quote posts. I'm pretty active on the forums.
I have officially stopped using scratchblocks: OFFICIAL Testing Topic so I will delete all messages on this topic when I become a scratcher.

#2280May 6, 2017 12:02:29
- chlbug
-
100+ posts
[scratchblocks] OFFICIAL testing topic
when Scratch Day arrived::events hat
Go to [https://scratch-mit-edu.ezproxyberklee.flo.org]
Have [fun v]::looks cap
Last edited by chlbug (May 6, 2017 12:03:19)