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

#2726 2013-02-22 10:43:30

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

Re: Official [Scratchblocks] Testing Play Area

OrcaCat wrote:

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

No, it still works. Just think, "'i' before 'e', except after 'c'."  tongue


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

Offline

 

#2727 2013-02-22 11:34:42

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

Re: Official [Scratchblocks] Testing Play Area

To have a colored square in your scratchblocks code, do this: (the color is only shown properly inside a block)

Code:

[scratchblocks]
when [#000000] clicked
[/scratchblocks]

You can use any other hexadecimal color.
Some examples:

Code:

[#000000] - Black
[#FFFFFF] - White
[#FF0000] - Red
[#0000FF] - Blue
[#00FF00] - Bright green
[#FFF000] - Yellow

when [#FFFFFF] clicked
broadcast [#000000]
if <color [#FF0000] is touching [#0000FF]?>
 say [#00FF00] for [#FFF000] secs
end

Last edited by dr3w8 (2013-02-22 11:38:53)


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

Offline

 

#2728 2013-02-23 15:56:24

gfchll
Scratcher
Registered: 2012-04-21
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

say [#FF0000][#FF6600][#FFEE00][#26FF00][#2C8F1B][#00FFEE][#0099FF][#0015FF][#9D00FF][#FF00DD]


HELLO EVERYBODY!

Offline

 

#2729 2013-02-23 16:38:50

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

Re: Official [Scratchblocks] Testing Play Area

powerpoint56 wrote:

OrcaCat wrote:

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

No, it still works. Just think, "'i' before 'e', except after 'c'."  tongue

Hehehehehe...

Wow. I fail.


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

Offline

 

#2730 2013-02-23 19:08:22

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

Re: Official [Scratchblocks] Testing Play Area

OrcaCat wrote:

powerpoint56 wrote:

OrcaCat wrote:

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

No, it still works. Just think, "'i' before 'e', except after 'c'."  tongue

Hehehehehe...

Wow. I fail.

when [#123456] key pressed
repeat until <[#3413A2]>
stamp [#343536]
end

Last edited by OrcaCat (2013-02-23 19:09:20)


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

Offline

 

#2731 2013-02-23 19:56:01

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

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
if <(cloud variables on Scratch 2.0) = [out]>
 set [mood v] to [Excited]
end

Last edited by dr3w8 (2013-02-23 19:56:20)


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

Offline

 

#2732 2013-02-24 18:41:43

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

when [#FF0000] clicked
say [RED MEANS EXPLOSIONS AND IF YOU TOUCH IT, YOU'LL EXPLODE...and I just touched it.]
explode into a million pieces
say [I WONDER WERE I'LL GO?]
burn into ashes
say [I'D GUESS IT WILL TAKE TIME.]
go to [year 4013]
say [I'D GUESS I'M STILL ASHES.]

Last edited by maxamillion321 (2013-02-24 18:42:37)

Offline

 

#2733 2013-02-24 20:16:25

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

Re: Official [Scratchblocks] Testing Play Area

Remember, this is not a play area, but a place to test scratchblocks.

Paddle2See wrote:

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.

With regards,

ErnieParke


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

Offline

 

#2734 2013-02-25 19:50:56

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

Re: Official [Scratchblocks] Testing Play Area

when I receive [paradox? v]
if <not <touching [time pod v]?>>
broadcast [Paradox! v]
else
hide
broadcast [doors v] and wait
end

Last edited by 3sal2 (2013-02-25 19:55:07)


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

 

#2735 2013-02-25 19:54:51

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

Re: Official [Scratchblocks] Testing Play Area

when I receive [Paradox! v]
play sound [Paradox v] until done
show


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

 

#2736 2013-02-26 07:23:10

KirbyPwnzor
Scratcher
Registered: 2013-02-26
Posts: 2

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
waffles

Offline

 

#2737 2013-02-26 07:26:17

KirbyPwnzor
Scratcher
Registered: 2013-02-26
Posts: 2

Re: Official [Scratchblocks] Testing Play Area

when sprite1 clicked
fart

Offline

 

#2738 2013-02-26 18:06:25

MischeviousRobot
New Scratcher
Registered: 2013-02-26
Posts: 1

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
say [I want to save my game waaaaaaaaaaa]
end

Offline

 

#2739 2013-02-26 22:20:47

bullelk12
Scratcher
Registered: 2012-05-26
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when green flag clicked
set [distance v] to [75]
set [rotation v] to [0]
forever
  repeat (360)
    set x to ((([sin v] of (rotation)) * (distance)) + ([x position v] of [Sprite2 v]))
    set y to ((([cos v] of (rotation)) * (distance)) + ([y position v] of [Sprite2 v]))
    change x by ((([cos v] of (rotation)) * (distance)) * (1))
    change y by ((([cos v] of (rotation)) * (distance)) * (1))
    change [rotation v] by (1)
  end
end

Last edited by bullelk12 (2013-02-26 22:21:05)


http://mag.racked.eu/cimage/i6000/Achievement++get%21/Scratcher+love+minecraft%21/mca.png

Offline

 

#2740 2013-02-26 23:16:07

hotsaucehater
Scratcher
Registered: 2012-12-22
Posts: 4

Re: Official [Scratchblocks] Testing Play Area

Work please!

when green flag clicked
repeat until <(awesomeness) = [100]>
think [please work!!!] for (bleh) secs
end

Last edited by hotsaucehater (2013-02-26 23:18:59)

Offline

 

#2741 2013-02-27 17:06:27

bob6
Scratcher
Registered: 2010-07-01
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
set [direction v] to (0)
set [distance v] to (50)
set [xVal v] to (50)
set [yVal v] to (50)
forever
   go to x: ((xVal)+((distance)*([cos v] of (direction)))) y: ((yVal)+((distance)*([sin v] of (direction)))) 
   change [direction v] by (1)

Last edited by bob6 (2013-02-27 17:10:21)


http://i46.tinypic.com/3148ksz.gif

Offline

 

#2742 2013-02-27 17:17:17

bob6
Scratcher
Registered: 2010-07-01
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

Sprite 1:

when gf clicked
go to x: (0) y: (0)
point in direction (0 v)
set [rotation speed v] to [1]
show variable [rotation speed v]
show
forever
   set [direction1 v] to ((360)-(((direction) - (90)) mod (360)))
   if <key [right arrow v] pressed?>
      turn cw (rotation speed) degrees
   end
   if <key [left arrow v] pressed?>
      turn ccw (rotation speed) degrees
   end
   if <key [h v] pressed?>
      hide
      hide variable [rotation speed v]
      wait until <not <key [h v] pressed?>>
      show
      show variable [rotation speed v]
   end
end
Sprite 2:
when gf clicked
point in direction (180 v)
set [rotation speed v] to [2]
show variable [rotation speed v]
show
forever
   set [direction2 v] to ((360)-(((direction) - (90)) mod (360)))
   if <key [right arrow v] pressed?>
      turn cw (rotation speed) degrees
   end
   if <key [left arrow v] pressed?>
      turn ccw (rotation speed) degrees
   end
   go to x: ((90) * ([cos v] of (direction1))) y: ((90) * ([sin v] of (direction1)))
   if <key [h v] pressed?>
      hide
      hide variable [rotation speed v]
      wait until <not <key [h v] pressed?>>
      show
      show variable [rotation speed v]
   end
end
Sprite 3:
when gf clicked
hide
pen up
set pen color to [#000000]
set pen size to (5)
pen down
forever
   go to x: (((90) * ([cos v] of (direction1))) + ((90) * ([cos v] of (direction2)))) y: (((90) * ([sin v] of (direction1))) + ((90) * ([sin v] of (direction2))))
   if <key [space v] pressed?>
      clear
   end
end

Last edited by bob6 (2013-02-27 17:36:21)


http://i46.tinypic.com/3148ksz.gif

Offline

 

#2743 2013-02-27 17:27:26

ElliottB1
Scratcher
Registered: 2013-02-08
Posts: 13

Re: Official [Scratchblocks] Testing Play Area

mitchboy wrote:

Hardmath123 wrote:

You can get a relatively good approximation by writing the project summary (shift-click File).

when green flag clicked
point in direction (90)
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

Fixed. //Colorful! - ElliottB1


http://muzy-posts.s3.amazonaws.com/i/freefeed/aot9c0buc97143qbsd6egoq4vmfnrif4.jpg Be like Patrick.

Offline

 

#2744 2013-02-27 17:33:03

ElliottB1
Scratcher
Registered: 2013-02-08
Posts: 13

Re: Official [Scratchblocks] Testing Play Area

when i receive [WINNEH!!! v]
repeat
say [LOLOLOLOLOLOLOLOL] for (OVER 9000) secs
end


http://muzy-posts.s3.amazonaws.com/i/freefeed/aot9c0buc97143qbsd6egoq4vmfnrif4.jpg Be like Patrick.

Offline

 

#2745 2013-02-27 17:38:07

bob6
Scratcher
Registered: 2010-07-01
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

bob6 wrote:

Sprite 1:

when gf clicked
go to x: (0) y: (0)
point in direction (0 v)
set [rotation speed v] to [1]
show variable [rotation speed v]
show
forever
   set [direction1 v] to ((360)-(((direction) - (90)) mod (360)))
   if <key [right arrow v] pressed?>
      turn cw (rotation speed) degrees
   end
   if <key [left arrow v] pressed?>
      turn ccw (rotation speed) degrees
   end
   if <key [h v] pressed?>
      hide
      hide variable [rotation speed v]
      wait until <not <key [h v] pressed?>>
      show
      show variable [rotation speed v]
   end
end
Sprite 2:
when gf clicked
point in direction (180 v)
set [rotation speed v] to [2]
show variable [rotation speed v]
show
forever
   set [direction2 v] to ((360)-(((direction) - (90)) mod (360)))
   if <key [right arrow v] pressed?>
      turn cw (rotation speed) degrees
   end
   if <key [left arrow v] pressed?>
      turn ccw (rotation speed) degrees
   end
   go to x: ((90) * ([cos v] of (direction1))) y: ((90) * ([sin v] of (direction1)))
   if <key [h v] pressed?>
      hide
      hide variable [rotation speed v]
      wait until <not <key [h v] pressed?>>
      show
      show variable [rotation speed v]
   end
end
Sprite 3:
when gf clicked
hide
pen up
set pen color to [#000000]
set pen size to (5)
pen down
forever
   go to x: (((90) * ([cos v] of (direction1))) + ((90) * ([cos v] of (direction2)))) y: (((90) * ([sin v] of (direction1))) + ((90) * ([sin v] of (direction2))))
   if <key [space v] pressed?>
      clear
   end
end

The purpose of this:
1) practice scratch-blocking skills
2) show everyone how my featured project on Scratch 2.0 works


http://i46.tinypic.com/3148ksz.gif

Offline

 

#2746 2013-02-28 16:24:51

mathfreak231
Scratcher
Registered: 2012-10-24
Posts: 80

Re: Official [Scratchblocks] Testing Play Area

I think this is a bug

clear //commmmment
wait until <[1] = [2]>
say [It covers up the comment!]


~This sig is false~
I'm on teh wiki!

Offline

 

#2747 2013-02-28 19:10:12

dacode
New Scratcher
Registered: 2013-02-28
Posts: 1

Re: Official [Scratchblocks] Testing Play Area

hey

Offline

 

#2748 2013-02-28 19:18:55

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

Re: Official [Scratchblocks] Testing Play Area

mathfreak231 wrote:

I think this is a bug

clear //commmmment
wait until <[1] = [2]>
say [It covers up the comment!]

Not for me.


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

Offline

 

#2749 2013-02-28 20:49:44

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

Re: Official [Scratchblocks] Testing Play Area

mathfreak231 wrote:

I think this is a bug

clear //commmmment
wait until <[1] = [2]>
say [It covers up the comment!]

This appears correctly for me, so it's not a bug. By coincidence, are you using IE?

With regards,

ErnieParke

Last edited by ErnieParke (2013-02-28 20:50:03)


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

Offline

 

#2750 2013-03-01 16:05:22

mathfreak231
Scratcher
Registered: 2012-10-24
Posts: 80

Re: Official [Scratchblocks] Testing Play Area

ErnieParke wrote:

mathfreak231 wrote:

I think this is a bug

clear //commmmment
wait until <[1] = [2]>
say [It covers up the comment!]

This appears correctly for me, so it's not a bug. By coincidence, are you using IE?

With regards,

ErnieParke

Nope, Safari. And by "covers up the comment", I mean only slightly.

I think that may be caused by text sizing, though...


~This sig is false~
I'm on teh wiki!

Offline

 

Board footer