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

#2701 2013-02-20 09:46:15

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

Whoa, I don't even have a [/scratchblocks] at the end of:

if <key [w v] pressed?>
switch to costume [up v]
set [gravity v] to (17)
change y by (15)
end
if <touching color [#F0D1B3]?>
set [gravity v] to (1)
change y by (gravity)
switch to costume [stand v]
else
switch to costume [up v]
change [gravity v] by (-1)
change y by (gravity)
end


http://i48.tinypic.com/2072ctw.gif

Offline

 

#2702 2013-02-20 09:50:05

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

<<if> and <<else> and <if>>>
join [Mary][Lamb]
<[to get] > (friendship)>


http://i48.tinypic.com/2072ctw.gif

Offline

 

#2703 2013-02-20 16:07:02

dr3w8
Scratcher
Registered: 2011-07-29
Posts: 81

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
if <[I v] am [awesome v]>
 say [I am awesome!] for (3) secs
end


http://i46.tinypic.com/1zfr32r.gif
http://i37.tinypic.com/2qixx6c.png

Offline

 

#2704 2013-02-20 16:35:44

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

 
when red flag clicked
say [There's a red flag??!!!]
think about it
say [Hmmm.....]
say [wouldn't that be useful... no, wait...]
think about it some more
Decide that this is nonsense
Go actually program in scratch
say [There's no red flag]
Send message [darn... v] 


Funny,

Regards,

CAA14

Offline

 

#2705 2013-02-20 16:40:53

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
broadcast [start game v]
set [score v] to (0)
show


if
when i get time
make another project
think [That would be great.. wouldn't it.]


Regards,

CAA14

Offline

 

#2706 2013-02-20 17:34:06

dr3w8
Scratcher
Registered: 2011-07-29
Posts: 81

Re: Official [Scratchblocks] Testing Play Area

when [#FF0000] clicked
say [There is a red square?] for (3) secs
think about [there being a red square button v]
realize [There is not a red square button. v]


http://i46.tinypic.com/1zfr32r.gif
http://i37.tinypic.com/2qixx6c.png

Offline

 

#2707 2013-02-20 18:29:13

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

when [read the previous post v] received
think [lol]
say [Lol!]
shout [LOL!]
ask [how did you make that hat block be a hat block?]
realize [he probably won't say...]
think [sad...]

Regards,

CAA14

Offline

 

#2708 2013-02-20 20:09:42

Epicness123
Scratcher
Registered: 2011-11-12
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when (i rock) clicked
say [you dont rock]
add (top 5 forumers) to [list]
add [1.GuyNamedBob] to [list]
add [2.Nomolos] to [list]
add [3.epicepicman] to [list]
add [4.Hardmath123] to [list]
add [5.me] to [list]
say [SEE! Lots of people are better than you]
accept ( challenge )
CHALLENGE ACCEPTED


I am Epicness123,and I rock!

Offline

 

#2709 2013-02-20 20:48:27

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

when [#FF6688] gf clicked
set [hue v] to [#FH6799](j) [x v] [lmnop] <when gf clicked>


http://i48.tinypic.com/2072ctw.gif

Offline

 

#2710 2013-02-20 20:59:25

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

Epicness123 wrote:

when [i rock v] clicked
say [you dont rock]
add (top 5 forumers) to [list v]
add [1. Firedrake969] to [list v]
add [2.Nomolos] to [list v]
add [3.epicepicman] to [list v]
add [4.Hardmath123] to [list v]
add [5. Epicness123] to [list v]
say [SEE! Lots of people are better than you]
accept ( challenge )//should be a procedure
broadcast [CHALLENGE ACCEPTED v] and wait

Fixed.   tongue


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2711 2013-02-20 21:19:17

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

CAA14 wrote:

when I receive [read the previous post v]
think [lol]
say [Lol!]
shout [LOL!]
ask [how did you make that hat block be a hat block?] and wait
realize [he probably won't say...]
think [sad...]

Regards,

CAA14

It's "when I receive ...", not "when ... receive"

Anyway, fixed.

With regards,

ErnieParke


http://i46.tinypic.com/35ismmc.png

Offline

 

#2712 2013-02-20 21:26:39

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

ErnieParke wrote:

CAA14 wrote:

when I receive [read the previous post v]
think [lol]
say [Lol!]
shout [LOL!]
ask [how did you make that hat block be a hat block?] and wait
realize [he probably won't say...]
think [sad...]

Regards,

CAA14

It's "when I receive ...", not "when ... receive"

Anyway, fixed.

With regards,

ErnieParke

Thanks again.

Regards,

CAA14

Offline

 

#2713 2013-02-21 02:50:39

piotrgrochowskiback
New Scratcher
Registered: 2013-02-06
Posts: 39

Re: Official [Scratchblocks] Testing Play Area

 
when [red v] Flag clicked
say [There's a red flag??!!!]
think about it
say [Hmmm.....]
say [wouldn't that be useful... no, wait...]
think about it some more
Decide that this is nonsense
Go to [BYOB v]
say [There's no red flag]
broadcast [darn... ▼] 
fiksed

Offline

 

#2714 2013-02-21 03:09:12

piotrgrochowskiback
New Scratcher
Registered: 2013-02-06
Posts: 39

Re: Official [Scratchblocks] Testing Play Area

How to make 1s1s sierpinski triangle grapher:
Sprite is called Point, 1x1 pixel, 1 costume, black.

when flag clicked
clear
go to x: (207) y: (-197)
stamp
go to x: (-207) y: (-197)
stamp
go to x: (0) y: (179)
stamp
go to x: (pick random (-240) to (240) ) y: (pick random (-180) to (180) )
forever
set [which? v] to (pick random (1) to (3) )
if < (which?) = [1] >
go to x: ( ( (x position) + (207) ) / (2) ) y: ( ( (y position) + (-179) ) / (2) )
else
if < (which?) = [2] >
go to x: ( ( (x position) + (-207) ) / (2) ) y: ( ( (y position) + (-179) ) / (2) )
else
go to x: ( (x position) / (2) ) y: ( ( (y position) + (179) ) / (2) )
end
end
 
Note: don't add end after forever or forever if and add end on other c'shaped blocks

Offline

 

#2715 2013-02-21 07:48:25

dr3w8
Scratcher
Registered: 2011-07-29
Posts: 81

Re: Official [Scratchblocks] Testing Play Area

CAA14 wrote:

when [read the previous post v] received
think [lol]
say [Lol!]
shout [LOL!]
ask [how did you make that hat block be a hat block?]
realize [he probably won't say...]
think [sad...]

Regards,

CAA14

I used this:
when [#FF0000] clicked
(you can use any hexadecimal color there)


http://i46.tinypic.com/1zfr32r.gif
http://i37.tinypic.com/2qixx6c.png

Offline

 

#2716 2013-02-21 08:22:31

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

when [very] [#FF0000][flag v] clicked <and [destroyed]>
if <(nobody) = [coming]>
turn cw (into) [a lampshade and get heated up to 90] degrees
else <else> 
move (and) steps [away]


http://i48.tinypic.com/2072ctw.gif

Offline

 

#2717 2013-02-21 08:23:01

piotrgrochowskiback
New Scratcher
Registered: 2013-02-06
Posts: 39

Re: Official [Scratchblocks] Testing Play Area

Some bugs.

if <when flag clicked> 
ask and wait           

Code:

[scratchblocks]
if <when flag clicked> [scratchblocks]
ask and wait           [/scratchblocks]
[/scratchblocks]

Offline

 

#2718 2013-02-21 08:35:25

piotrgrochowskiback
New Scratcher
Registered: 2013-02-06
Posts: 39

Re: Official [Scratchblocks] Testing Play Area

when flag clicked
point in direction (90 v)
set [PlayerX v] to (0)
set [PlayerY v] to (0)
set [LevelNumber v] to (1)
set [Dir v] to (0)
set [Xvel v] to (0)
set [Yvel v] to (0)
forever  
clear
go to x: (0) y: (0)
switch to costume ((LevelNumber)+(1))
stamp
switch to costume [Marble v]
if <(Dir)=(0)>  
go to x: ((PlayerX)*(30)) y: ((PlayerY)*(30))
else
if <(Dir)=(1)> 
go to x: ((PlayerY)*(30)) y: ((PlayerX)*(-30))
else
if <(Dir)=(2)> 
go to x: ((PlayerX)*(-30)) y: ((PlayerY)*(-30))
else
go to x: ((PlayerY)*(-30)) y: ((PlayerX)*(30))
stamp
if <key [right arrow v] pressed?> 
switch to costume ((LevelNumber)+(1))
go to x: (0) y: (0)
clear
set [Dir v] to (((Dir)+(1)) mod (4))
set [PlayerX v] to (round (PlayerX))
set [PlayerY v] to (round (PlayerY))
repeat (10)  
turn ccw (9) degrees
if <key [left arrow v] pressed?> 
switch to costume ((LevelNumber)+(1))
go to x: (0) y: (0)
clear
set [Dir v] to (((Dir)-(1)) mod (4))
set [PlayerX v] to (round (PlayerX))
set [PlayerY v] to (round (PlayerY))
repeat (10)  
turn ccw (-9) degrees
if <<(Dir)=(0)> and <(0)=(letter((((round (PlayerX))+(0))+(4))+((((round ((PlayerY)+(0.5)))+ (-1))-(3))*(-7))) of (item (LevelNumber) of [LevelData v]))>> 
change [PlayerY v] by (-0.1)
if <<(Dir)=(1)> and <(0)=(letter((((round ((PlayerX)-(0.5)))+(1))+(4))+((((round ((PlayerY)+(0.5)))+(0))-(3))*(-7))) of (item (LevelNumber) of [LevelData v]))>> 
change [PlayerX v] by (0.1)
if <<(Dir)=(2)> and <(0)=(letter((((round (PlayerX))+(0))+(4))+((((round ((PlayerY)-(0.5)))+(1)) -(3))*(-7))) of (item (LevelNumber) of [LevelData v]))>> 
change [PlayerY v] by (0.1)
if <<(Dir)=(3)> and <(0)=(letter((((round ((PlayerX)+0.5))+(-1))+(4))+((((round ((PlayerY)-(0.5)))+(0))-(3))*(-7))) of (item (LevelNumber) of [LevelData v]))>> 
change [PlayerX v] by (-0.1)
end
end
end
end
end
end
end
end
end
end
end
fixed from fixed version: dropdown and ""end"" tags

Offline

 

#2719 2013-02-21 08:46:44

piotrgrochowskiback
New Scratcher
Registered: 2013-02-06
Posts: 39

Re: Official [Scratchblocks] Testing Play Area

Hardmath123 wrote:

    when flag clicked
repeat until <mouse down?>
            switch to costume [Marble v]
            if <(PlayerX) = (PlayerY)>
                go to x:  (PlayerX) y: (PlayerY)
            else
       change [PlayerX v] by (0.1)
end
end
end
end//ending

shorter version and fixed

Offline

 

#2720 2013-02-21 16:43:01

epicepicman
Scratcher
Registered: 2011-07-17
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

Epicness123 wrote:

when (i rock) clicked
say [you dont rock]
add (top 5 forumers) to [list]
add [1.GuyNamedBob] to [list]
add [2.Nomolos] to [list]
add [3.epicepicman] to [list]
add [4.Hardmath123] to [list]
add [5.me] to [list]
say [SEE! Lots of people are better than you]
accept ( challenge )
CHALLENGE ACCEPTED

when I receive [Epicness123's post v]
say [Why, thank you!]


If you want something to do while Scratch is down, check out tbgs.tk! It's the new version of the (closed) Scratch TBGS, run by Scratchers! I'm going to spend most of my time there, anyway.

Offline

 

#2721 2013-02-21 21:11:44

ZINGERX
Scratcher
Registered: 2013-02-18
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
say 'help me'!

Offline

 

#2722 2013-02-21 21:16:13

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

dr3w8 wrote:

CAA14 wrote:

when [read the previous post v] received
think [lol]
say [Lol!]
shout [LOL!]
ask [how did you make that hat block be a hat block?]
realize [he probably won't say...]
think [sad...]

Regards,

CAA14

I used this:
when [#FF0000] clicked
(you can use any hexadecimal color there)

Oh, ok. Thanks.

when [blue] clicked
say [the polar opposite.. ]
think [This guy was real nice, i thought he would just ignore me...]
wave [bye!]
Regards,

CAA14

Offline

 

#2723 2013-02-21 21:23:06

OrcaCat
Scratcher
Registered: 2010-06-30
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

when gf [#666666] clicked
YES!
when i receive [#123456]
Nope.

Last edited by OrcaCat (2013-02-23 16:38:32)


     Awesome music     Electrode's theme     Epic music
Bye, 1.x.  sad                             Hello, 2.x!  smile

Offline

 

#2724 2013-02-21 21:28:42

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Official [Scratchblocks] Testing Play Area

ZINGERX wrote:

when gf clicked
forever
 say ['help me'!]

Fixed; you had forgotten the [scratchblocks] tags.

With regards,

ErnieParke

Last edited by ErnieParke (2013-02-21 21:28:51)


http://i46.tinypic.com/35ismmc.png

Offline

 

#2725 2013-02-22 08:25:34

dr3w8
Scratcher
Registered: 2011-07-29
Posts: 81

Re: Official [Scratchblocks] Testing Play Area

CAA14 wrote:

dr3w8 wrote:

CAA14 wrote:

when [read the previous post v] received
think [lol]
say [Lol!]
shout [LOL!]
ask [how did you make that hat block be a hat block?]
realize [he probably won't say...]
think [sad...]

Regards,

CAA14

I used this:
when [#FF0000] clicked
(you can use any hexadecimal color there)

Oh, ok. Thanks.

when [#0000FF] clicked
say [the polar opposite.. ]
think [This guy was real nice, i thought he would just ignore me...]
wave [bye!]
Regards,

CAA14

Fixed.


http://i46.tinypic.com/1zfr32r.gif
http://i37.tinypic.com/2qixx6c.png

Offline

 

Board footer