williambl wrote:
when I recieve [v] //Glitch! //Glitch!
say [I before E, except after C, or when pronounced "A" as in "neighbor" or "weigh".] for (20) secs say [The parser doesn't recognize free-floating comments.] for (5) secs say [You can't have empty dropdowns.] for (8) secs
when I receive [broadcast v] when I recieve [broadcast v] hide//c //c play sound [sound v] play sound [ v]
Offline
set pen color to [#f8a4cc] set pen colour to [#f8a4cc]
Offline
sonicfan12p wrote:
Just a hint, the <touching> blocks need to be written like this,
<touching [sprite 1 v]?> Be sure to include question marks, or it will be a red block. Here are all the blocks that need a question mark after them;if <touching [sprite 1 v]?> end if <touching color [#000000]?> end if <color [#000000] is touching [#00FF00]?> end if <mouse down?> end if <key [any v] pressed?> end if <loud?> end if <sensor [button pressed v]?>//This block is not supportedAll these are in sensing (the blue category).
I hope this prevents some confusion in the future!
Indeed. None of the sensor-related/motor blocks are supported:
motor off if <sensor [button pressed v]?> motor on motor power (100) motor direction [this way v] else motor on for ([light v] sensor value) secs endI wonder if JSO intentionally excluded them... not many Scratchers have a PicoBoard/Lego WeDo motor.
set size to (100)% set size to (100) %
Offline
In the set pen colour to: block, how do you get the coloured bit at the end?
Last edited by pinnipediator (2012-06-21 01:52:54)
Offline
Paddle2See wrote:
We seem to be getting a lot of spam posts from people new to the forums trying out the Scratchblock feature. Maybe if we had a dedicated place for playing around with them, we could cut down on that some.
So here it is - try out your script displaying skills here!
However, please do not turn this into a spam area. Post until you are comfortable with the Scratchblock syntax and then stop. Don't make ongoing stories or conversations here.
Offline
repeat <forever> forever <repeat until> change [variable v] by <forever> if <change x by [10] repeat until [0] <touching [sprite v]?> forever <forever> forever <forever <forever <forever>>>
<forever> <move [10] steps>
if <when gf clicked> repeat until <when I receive [message v]>Epic...
Last edited by PhirripSyrrip (2012-06-22 15:46:52)
Offline
if < when I receive [something v] > scripts endLook, it's Snap!!
Offline
[excessive blocks removed - please use this area for useful practice of the Scratchblocks - not for spam]
WOOOOOOOAAAAAHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Last edited by Lucario621 (2012-06-30 16:18:23)
Offline
pinnipediator wrote:
In the set pen colour to: block, how do you get the coloured bit at the end?
By entering a hexadecimal color. For example:
set pen color to [#4b308d]
This changes the bit at the end to the color "purple rain", or #4B308D.
set pen color to [#4b308d]
Offline
When Paddle2See post's end say [Listen to him >:O] for (2) secs
Offline
Ooh... what happens if you put C blocks in parentheses or angle brackets?
(if <>)
Last edited by 3sal2 (2012-06-23 20:29:52)
Offline
PhirripSyrrip wrote:
repeat <forever> forever <repeat until> change [variable v] by <forever> if <change x by [10] repeat until [0] <touching [sprite v]?> forever <forever> forever <forever <forever <forever>>><forever> <move [10] steps>if <when gf clicked> repeat until <when I receive [message v]>Epic...
AAAGGGHHHHHH!!!
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs play sound [blah v] go to x: (0) y: (0) forever move (10) steps if on edge, bounce
when gf clicked repeat until [[timer] > (10)] go to (mouse-pointer v) end think [Scripts in your posts!] for [3] secs play sound (blah v) go to x: [0] y: [0] forever move <10> steps if on edge, bounce
whengfclickedrepeatuntil<(timer)>[10]>goto[mouse-pointer v]endthink[Scripts in your posts!]for(3)secsplay sound[blahv]gotox:(0)y:(0)forevermove(10)stepsifonedge,bounce
whengfclickedrepeatuntiltimer>10gotomouse-pointervendthinkScripts in your posts!for3secsplay soundblahvgotox:0y:0forevermove10stepsifonedge,bounce
whengfclicked repeatuntil<(timer) > [10]> goto[mouse-pointer v] end think[Scripts in your posts!]for(3)secs playsound[blah v] gotox:(0)y:(0) forever move(10)steps ifonedge,bounce
whengfclickedrepeatuntiltimer>gotoendthinkforsecsplay soundblahvgotox:y:forevermovestepsifonedge,bounce
say [#8000ff] when gf clicked say <forever <move (10) steps>> <not> (6) end move (1) steps stop all [S's v]
Offline
3sal2 wrote:
PhirripSyrrip wrote:
repeat <forever> forever <repeat until> change [variable v] by <forever> if <change x by [10] repeat until [0] <touching [sprite v]?> forever <forever> forever <forever <forever <forever>>><forever> <move [10] steps>if <when gf clicked> repeat until <when I receive [message v]>Epic...AAAGGGHHHHHH!!!
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs play sound [blah v] go to x: (0) y: (0) forever move (10) steps if on edge, bouncewhen gf clicked repeat until [[timer] > (10)] go to (mouse-pointer v) end think [Scripts in your posts!] for [3] secs play sound (blah v) go to x: [0] y: [0] forever move <10> steps if on edge, bouncewhengfclickedrepeatuntil<(timer)>[10]>goto[mouse-pointer v]endthink[Scripts in your posts!]for(3)secsplay sound[blahv]gotox:(0)y:(0)forevermove(10)stepsifonedge,bouncewhengfclickedrepeatuntiltimer>10gotomouse-pointervendthinkScripts in your posts!for3secsplay soundblahvgotox:0y:0forevermove10stepsifonedge,bouncewhengfclicked repeatuntil<(timer) > [10]> goto[mouse-pointer v] end think[Scripts in your posts!]for(3)secs playsound[blah v] gotox:(0)y:(0) forever move(10)steps ifonedge,bouncewhengfclickedrepeatuntiltimer>gotoendthinkforsecsplay soundblahvgotox:y:forevermovestepsifonedge,bouncesay [#8000ff] when gf clicked say <forever <move (10) steps>> <not> (6) end move (1) steps stop all [S's v]
operator
Offline
legoboy09 wrote:
sorry i was trying to do if blocks
To make C blocks, simply enter the block name, just like any other block:
when gf clicked forever if <loud?> say [Ha ha ha.] for (loudness) secs stop script
when gf clicked forever if <loud?> say [Ha ha ha.] for (loudness) secs stop scriptTo stop a C block, use "end".
repeat until <loud?> say <mouse down?> end
repeat until <loud?> say <mouse down?> end
Offline
fetchydog567 wrote:
3sal2 wrote:
PhirripSyrrip wrote:
repeat <forever> forever <repeat until> change [variable v] by <forever> if <change x by [10] repeat until [0] <touching [sprite v]?> forever <forever> forever <forever <forever <forever>>><forever> <move [10] steps>if <when gf clicked> repeat until <when I receive [message v]>Epic...AAAGGGHHHHHH!!!
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs play sound [blah v] go to x: (0) y: (0) forever move (10) steps if on edge, bouncewhen gf clicked repeat until [[timer] > (10)] go to (mouse-pointer v) end think [Scripts in your posts!] for [3] secs play sound (blah v) go to x: [0] y: [0] forever move <10> steps if on edge, bouncewhengfclickedrepeatuntil<(timer)>[10]>goto[mouse-pointer v]endthink[Scripts in your posts!]for(3)secsplay sound[blahv]gotox:(0)y:(0)forevermove(10)stepsifonedge,bouncewhengfclickedrepeatuntiltimer>10gotomouse-pointervendthinkScripts in your posts!for3secsplay soundblahvgotox:0y:0forevermove10stepsifonedge,bouncewhengfclicked repeatuntil<(timer) > [10]> goto[mouse-pointer v] end think[Scripts in your posts!]for(3)secs playsound[blah v] gotox:(0)y:(0) forever move(10)steps ifonedge,bouncewhengfclickedrepeatuntiltimer>gotoendthinkforsecsplay soundblahvgotox:y:forevermovestepsifonedge,bouncesay [#8000ff] when gf clicked say <forever <move (10) steps>> <not> (6) end move (1) steps stop all [S's v]operator
Offline
technoboy10 wrote:
if < get out of my house[something v] > scripts endLook, it's Snap!!
Offline
ftf841 wrote:
[excessive blocks removed - please use this area for useful practice of the Scratchblocks - not for spam]
WOOOOOOOAAAAAHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Last edited by Lucario621 (2012-06-30 16:17:55)
Offline
rravenswaiter wrote:
hi i like trains and can jump 50 metres
say [How can you jump that far?! Where are you from? Eris?] for (10) secsOr are you exaggerating?
Offline
legoboy09 wrote:
if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10if 1=1and 2=2and 3=3and 4=4and 5=5and 6=6and 7=7and 8=8and 9=9and 10=10say cheese! say mister maker rules
Tags are case-sensitive.
Offline
Splodgey wrote:
CheeseMunchy wrote:
when i receive [lunch Time! v] Set [Size of pickle v] to [100] Open [oven v] Grab [pickle v] pull up [chair v] wait [3] secs repeat until <(Size of pickle) = [0]> [Chew v] for [3] secs Change [Size of pickle v] by [-1] wait [1] secs say [ew this is nasty] for [2] secs end broadcast [lunch eaten v]when i receive [lunch eaten v] say [LOLOLOLOLOLOLOL] for [a lot] secs
when I receive [Dinner v] set [size of drumstick v] to [100] open [oven v] grab [turkey v] pull up chair break off leg repeat until <(size of turkey) = [0]> [chew v] for (3) secs change [size of turkey v] by (-1) wait (1) secs say [Mmm!] for (1) secs end broadcast [Dinner eaten v]
when I receive [Dinner eaten v] say [Ha ha ha] for (3600) secs
Offline
when gf clicked go to [telescope v] broadcast [Look v] and wait say [Let's go there!] for (2) secs go to [spaceship v] broadcast [launch v] and wait go to [spaceship v]
when I receive [Look v] point towards [Venus v]
when I receive [launch v] play sound [computer bleeps v] until done go to [Venus v]
Offline
when gf clicked forever if <touching color [#200040]?> say [Uh oh.] for (1) secs hide play sound [gobble v] until done
Offline
set pen colour to [#4b308d]Testing! Thanks!
Offline