This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#476 2012-06-20 11:35:11

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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]


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#477 2012-06-20 11:39:06

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

set pen color to [#f8a4cc]
set pen colour to [#f8a4cc]


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#478 2012-06-20 15:38:44

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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 supported
All 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
end
I wonder if JSO intentionally excluded them... not many Scratchers have a PicoBoard/Lego WeDo motor.

Also, the parser confuses strings like ") %" with a blank:

set size to (100)%
set size to (100) %


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#479 2012-06-21 01:48:14

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

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

 

#480 2012-06-21 07:26:58

KD3629cc
New Scratcher
Registered: 2012-06-21
Posts: 2

Re: Official [Scratchblocks] Testing Play Area

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

 

#481 2012-06-21 17:30:01

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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)


http://i46.tinypic.com/ao03lk.png

Offline

 

#482 2012-06-21 17:49:23

technoboy10
Scratcher
Registered: 2007-08-25
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

 
if < when I receive [something v] >
scripts 
end
Look, it's Snap!!


So long, 1.4.
http://goo.gl/3JEV9

Offline

 

#483 2012-06-22 17:51:49

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

[excessive blocks removed - please use this area for useful practice of the Scratchblocks - not for spam]

WOOOOOOOAAAAAHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  yikes

Last edited by Lucario621 (2012-06-30 16:18:23)


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#484 2012-06-22 18:21:16

360-International
Scratcher
Registered: 2011-07-17
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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]


https://lh4.googleusercontent.com/Oib6kyze-OrCFIRlqL6HYnWuHBQp1GfFoh5CkBlZGe3_9WCk-_DDwgfFrnD_mxJ_x2b18hMUyV2KVtIDiLdebyWaQQ6fbpKpZs-8auVep1zoSgOv-iA

Offline

 

#485 2012-06-23 17:37:51

norty
Scratcher
Registered: 2012-02-03
Posts: 23

Re: Official [Scratchblocks] Testing Play Area

When I recive DERP v
say HGJKFVUJGFTUFGVKYIFUTFUD for A BILLION mins


Heyo Scratchians! It's norty here, yes, norty. Im goner say it one more time. nnnorty.

Offline

 

#486 2012-06-23 17:40:30

norty
Scratcher
Registered: 2012-02-03
Posts: 23

Re: Official [Scratchblocks] Testing Play Area

[Scratchblocks]
When LAWL clicked
go to [DERP]
scream [OMG LAWL .3.] forver


Heyo Scratchians! It's norty here, yes, norty. Im goner say it one more time. nnnorty.

Offline

 

#487 2012-06-23 19:57:50

NanzoInzuna
Scratcher
Registered: 2012-06-21
Posts: 13

Re: Official [Scratchblocks] Testing Play Area

When Paddle2See post's
end
say [Listen to him >:O] for (2) secs


Go To Potato

Offline

 

#488 2012-06-23 20:29:39

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

Ooh... what happens if you put C blocks in parentheses or angle brackets?

(if <>)

Last edited by 3sal2 (2012-06-23 20:29:52)


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#489 2012-06-23 20:47:19

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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!!!  tongue

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]


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#490 2012-06-23 20:56:51

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

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!!!  tongue

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]

operator


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#491 2012-06-23 20:57:20

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

legoboy09 wrote:

sorry i was trying to do if blocks

To make C blocks, simply enter the block name, just like any other block:

Code:

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 script
To stop a C block, use "end".

Code:

repeat until <loud?>
say <mouse down?>
end

repeat until <loud?>
say <mouse down?>
end


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#492 2012-06-23 20:58:06

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

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!!!  tongue

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]

operator


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#493 2012-06-23 20:59:14

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

technoboy10 wrote:

 
if < get  out  of  my  house[something v] >
scripts 
end
Look, it's Snap!!


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#494 2012-06-23 21:02:09

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

ftf841 wrote:

[excessive blocks removed - please use this area for useful practice of the Scratchblocks - not for spam]

WOOOOOOOAAAAAHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  yikes

Last edited by Lucario621 (2012-06-30 16:17:55)


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#495 2012-06-23 21:47:48

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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) secs
Or are you exaggerating?


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#496 2012-06-23 21:49:26

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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.


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#497 2012-06-24 08:35:24

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#498 2012-06-24 08:43:54

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

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]


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#499 2012-06-24 08:48:44

3sal2
Scratcher
Registered: 2012-03-22
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever if <touching color [#200040]?>
say [Uh oh.] for (1) secs
hide
play sound [gobble v] until done


http://scratch.mit.edu/static/projects/3sal2/3120946_sm.png In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.

Offline

 

#500 2012-06-24 11:23:35

pinnipediator
Scratcher
Registered: 2012-02-10
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

 
set pen colour to [#4b308d] 
Testing! Thanks!

Offline

 

Board footer