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

#76 2012-03-16 09:42:58

joletole
Scratcher
Registered: 2011-02-20
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

lets see if this works.
//(hi)

Offline

 

#77 2012-03-16 09:47:42

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

joletole wrote:

lets see if this works.
//(hi)

when i receive
joletole posted
ask
what were you trying to do? Variable in a comment?or end a comment with /?
and wait
I couldn't put "//"
the only purpose of this is
comment
because it wouldn't work then...

Last edited by Splodgey (2012-03-16 09:48:23)

Offline

 

#78 2012-03-17 10:41:23

12_lassy
Scratcher
Registered: 2011-07-23
Posts: 13

Re: Official [Scratchblocks] Testing Play Area

First time trying it...

I hope it works!

Edit: Forgot to add closing tag, woops!
Edit2: Seems like the block script stops working if I put text after it...

when clicked
forever
point towards
mouse-pointer
move
5
steps

Last edited by 12_lassy (2012-03-17 10:43:40)


http://i552.photobucket.com/albums/jj357/12_lassy/scratchsiggy.png

Offline

 

#79 2012-03-17 11:06:25

12_lassy
Scratcher
Registered: 2011-07-23
Posts: 13

Re: Official [Scratchblocks] Testing Play Area

a1130 wrote:

My early morning routine  tongue :

when clicked
play sound
alarm
until done
go to
dining room
eat
breakfast
if
breakfast
=
good
say
OM NOM NOM this is tasty xD
for
1000
secs
else
broadcast
puke

When I receive
puke
play sound
puke
say
Eww! disgusting!
for
5
secs

Hehe.  big_smile

This is mine: (;-;...)

when clicked
broadcast
morning routine
When I receive
morning routine
forever
if
not
awake?
=
yep
repeat until
awake?
=
yep
play sound
mother yelling
broadcast
WAKE UP
When I receive
WAKE UP
play sound
grumble
turn
180
degrees
set
awake?
to
nope
play sound
snore
broadcast
morning routine


http://i552.photobucket.com/albums/jj357/12_lassy/scratchsiggy.png

Offline

 

#80 2012-03-17 11:24:58

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

when clicked
if
post
=
1
say
I haven't had a chance to test these, let's see how it works!


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#81 2012-03-17 12:28:26

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

When clicked
Say
help! I'm trapped in this box in this script!

Last edited by turkey3 (2012-03-17 12:30:18)

Offline

 

#82 2012-03-18 17:35:38

a1130
Scratcher
Registered: 2009-08-27
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

when I receive
muppetds in jail
say
set him free!!!
for
3
secs
set
muppetds
to
freedom
destroy
everything involved with muppetds going to jail xP
rebuild
everything involved with muppetds escaping

Offline

 

#83 2012-03-18 17:59:11

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Splodgey wrote:

People could just click preview to test around, but this will be good for the people who didn't think about that.

That's what i do, the preview thing. that way i don't get embaressed by doing a fail scratchblock attempt.


La La
I wrote an album.

Offline

 

#84 2012-03-19 05:49:14

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

AgentRoop wrote:

Splodgey wrote:

People could just click preview to test around, but this will be good for the people who didn't think about that.

That's what i do, the preview thing. that way i don't get embaressed by doing a fail scratchblock attempt.

when i receive
AgentRoop posted
say
Your lucky I can't be bothered to write an arresting script.
for
2
secs
say
It is now a criminal offence not to speak in scratchblocks in this thread.
for
3
secs

Offline

 

#85 2012-03-19 11:28:51

mattlai2
Scratcher
Registered: 2011-12-06
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when clicked
say
Let's not turn this into a TBG...

Offline

 

#86 2012-03-19 15:41:02

a1130
Scratcher
Registered: 2009-08-27
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

when I receive
peace talks
say
What are we going to talk about?
for
5
secs

Last edited by a1130 (2012-03-19 15:41:31)

Offline

 

#87 2012-03-20 04:07:15

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

a1130 wrote:

when I receive
peace talks
say
What are we going to talk about?
for
5
secs

when I receive
peace talks
listen to
a1130
shrug
for
0.5
secs
broadcast
respond

Offline

 

#88 2012-03-20 07:20:29

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

When I receive
TEH FOOD IS READY
say
omnomnomnomnomnom
broadcast
eat


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#89 2012-03-20 07:43:42

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

funelephant wrote:

When I receive
TEH FOOD IS READY
say
omnomnomnomnomnom
broadcast
eat

size of meal
when i receive
eat
size of meal is 400 (g)
pull out
chair
sit on
chair
grab
cutlery
repeat until
size of meal
=
0
eat a bit of food
change
size of meal
by
-1
change
Weight
by
1
if
taste buds want more?
say
Yum!
else
say
eeewww!
if
Weight
>
Height
/
3
*
1000
not precise... Height in cm
set
Health of Weight
to
Overweight
goto
outside
repeat until
Weight
<
Height
/
3.5
*
1000
run around
else
if
Weight
>
set
Health of Weight
to
Underweight
broadcast
make food
when i receive
make food
repeat until
size of meal
>
pick random
399
to
pick random
600
to
1200
grab
ingredients
change
size of meal
by
1
broadcast
TEH FOOD IS READY

Last edited by Splodgey (2012-03-20 07:44:09)

Offline

 

#90 2012-03-20 17:49:37

mikemm27
New Scratcher
Registered: 2011-12-14
Posts: 3

Re: Official [Scratchblocks] Testing Play Area

Just to try

glide
bdis
/
bsp
to x:
(x position)-5
y:
([x position] of [Sprite1])*5
wait
(wt)
secs
if
a
>
10
go to x:
XX
y:
3
else
point in direction
90

Offline

 

#91 2012-03-21 06:34:05

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

mikemm27 wrote:

Just to try

glide
bdis
/
bsp
secs to x:
x position
-
5
y:
x position
of
Sprite1
*
5
wait
wt
secs
if
a
>
10
go to x:
XX
y:
3
else
point in direction
90

scripts
fixed
by
Splodgey

Last edited by Splodgey (2012-03-21 06:35:05)

Offline

 

#92 2012-03-21 06:49:25

mikemm27
New Scratcher
Registered: 2011-12-14
Posts: 3

Re: Official [Scratchblocks] Testing Play Area

Thank you for your corrections.
One more question: apart from the Preview feature of this
form, how is it possible to check the correctness of a scratchblock
script? Is any off-line syntax checker available, or a similar feature?

Greetings, mike.

Splodgey wrote:

mikemm27 wrote:

Just to try

glide
bdis
/
bsp
secs to x:
x position
-
5
y:
x position
of
Sprite1
*
5
wait
wt
secs
if
a
>
10
go to x:
XX
y:
3
else
point in direction
90

scripts
fixed
by
Splodgey

Offline

 

#93 2012-03-21 09:10:58

mikemm27
New Scratcher
Registered: 2011-12-14
Posts: 3

Re: Official [Scratchblocks] Testing Play Area

Again help, please.

glide
2
secs to x:
x position
of
spriteName
y:
y position
of
(spriteName)

How can I obtain the correct sensing command "<x,y position> of <sprite>" when the
sprite parameter is the value of a string variable (stopName)? Both solutions above are wrong (in the first it is not recognized as the sensing command, the second does not show the variable report).

Thanks.
mike

Offline

 

#94 2012-03-21 11:43:46

coolhogs
Scratcher
Registered: 2011-07-26
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Coolhogs
Making Projects since 2011


Get ready for domination of:  tongue

Offline

 

#95 2012-03-21 11:46:48

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Splodgey wrote:

rdococ wrote:

Splodgey wrote:

hmm

when i receive
:/
say
That's not talking - don't bother, police... : /
when i receive
weapons deployed
sigh deeply
for
6
secs
destroy
all
weapons
start
peace talks

when I receive
peace talks
say
Wait... I don't understand what you mean by destroy [all v] [weapons v]...
]

when i receive [peace talks v]
listen to [rdococ v]
say [I destroyed all the weapons.]
ask [What is there not to understand?] and wait
say [argh! Le bug!]

when I receive
What is there not to understand?
ask
Well, who's weapons was destroyed? :P
and wait
say
Wait, the bug is that the scratchblocks end tag isn't there!

Last edited by rdococ (2012-03-21 11:54:20)

Offline

 

#96 2012-03-21 11:49:04

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

coolhogs wrote:

Coolhogs
Making Projects since 2011

Splodgey
Scratching since 2010
look to your left. I'm Confused... :S

Offline

 

#97 2012-03-21 11:50:29

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Splodgey wrote:

coolhogs wrote:

Coolhogs
Making Projects since 2011

Splodgey
Scratching since 2010
look to your left. I'm Confused... :S

ask
Please answer my question, in the last post I posted.
and wait
say
No, you didn't end the ScratchBlocks syntax...
for
atleast
9000
years
years to seconds
secs

Last edited by rdococ (2012-03-21 11:52:53)

Offline

 

#98 2012-03-21 11:55:03

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

rdococ wrote:

Splodgey wrote:

rdococ wrote:

when I receive
peace talks
say
Wait... I don't understand what you mean by destroy [all v] [weapons v]...
]
/scratchblock

when i receive
peace talks
listen to
rdococ
say
I destroyed all the weapons.
ask
What is there not to understand?
and wait
say
argh! Le bug!
/quote

when I receive
What is there not to understand?
ask
Well, who's weapons was destroyed? :P
and wait

when i receive
rdococ's post
say
Read the post I quoted? That might help...

Offline

 

#99 2012-03-21 11:59:34

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Splodgey wrote:

rdococ wrote:

Splodgey wrote:


when i receive [peace talks v]
listen to [rdococ v]
say [I destroyed all the weapons.]
ask [What is there not to understand?] and wait
say [argh! Le bug!]

when I receive
What is there not to understand?
ask
Well, who's weapons was destroyed? :P
and wait

when i receive
rdococ's post
say
Read the post I quoted? That might help...

when I receive
What is there not to understand?
ask
That doesn't say who's weapons got destroyed.
and wait

Offline

 

#100 2012-03-21 12:01:42

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

rdococ wrote:

Splodgey wrote:

coolhogs wrote:

Coolhogs
Making Projects since 2011

Splodgey
Scratching since 2010
look to your left. I'm Confused... :S

ask
Please answer my question, in the last post I posted.
and wait
say
No, you didn't end the ScratchBlocks syntax...
for
atleast
9000
years
years to seconds
secs

when i receive
impatience...
say
You posted halfway through me posting (posting from the Wii)
say
and I'm pretty sure I did end the syntax... I recall editing it to end it...

Last edited by Splodgey (2012-03-21 12:59:20)

Offline

 

Board footer