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

#2401 2013-01-13 14:36:20

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

Re: Official [Scratchblocks] Testing Play Area

minecraft761 wrote:

I got an awesome script!

when [Player v] clicked
say [Welcome to script island!] for (3) secs
set pen color to [#00FF01]
add [Robot Eye] to [Inventory v]
broadcast [Mario v]

Fixed to an extent.


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

Offline

 

#2402 2013-01-13 14:47:27

minecraft761
Scratcher
Registered: 2012-10-22
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

if <[Inventory v] contains [Battery]>
  say [You have a Battery.] for (5) secs
else
  say [You don't have a battery.] for (5) secs
end
Allow [16] in group
Controls for all? [yes] // These are multiplayer blocks.
[stop this script]

Offline

 

#2403 2013-01-13 15:19:34

minecraft761
Scratcher
Registered: 2012-10-22
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

Block puzzle script:

when gf clicked
forever if <<mouse down?> and <touching [mouse pointer v] ?>
  go to [mouse pointer v]
end

Offline

 

#2404 2013-01-13 15:24:29

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

Re: Official [Scratchblocks] Testing Play Area

minecraft761 wrote:

Block puzzle script:

when gf clicked
forever if <(mouse down?) and (touching [mouse pointer v] ?)>
  go to [mouse pointer v]

Fixed; you had an extra "end".

Last edited by ErnieParke (2013-01-15 16:12:27)


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

Offline

 

#2405 2013-01-13 18:03:08

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

minecraft761 wrote:

Block puzzle script:

when gf clicked
forever if <<mouse down?> and <touching [mouse pointer v] ?>>
  go to [mouse pointer v]
end

Offline

 

#2406 2013-01-15 12:30:10

Yellown
New Scratcher
Registered: 2013-01-14
Posts: 1

Re: Official [Scratchblocks] Testing Play Area

[scratchblocks]
whengfclicked
Repeat until <(lives) sad 0)>
     Say<cheese>
End
Say<you die>

Offline

 

#2407 2013-01-15 15:53:00

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

Re: Official [Scratchblocks] Testing Play Area

Yellown wrote:

whengfclicked
Repeat until <(lives)=(0)>
     Say [cheese]
End 
Say [you die]

Last edited by OrcaCat (2013-01-15 15:53:30)


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

Offline

 

#2408 2013-01-15 15:54:18

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

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
bump [this post v] to [top v]


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

Offline

 

#2409 2013-01-15 15:56:53

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

Re: Official [Scratchblocks] Testing Play Area

[Testing 2.0 blocks...]
(current [minute v])
(user ID)
[Nope.]

Last edited by OrcaCat (2013-01-15 16:04:07)


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

Offline

 

#2410 2013-01-15 17:43:28

numberonegamers
Scratcher
Registered: 2012-07-12
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

When gf clicked
Forever 
 Say (mood)
End

When gf clicked
If <(scratch 2.0 coming out) > [10 days away]>
 Set [mood v] to [happy]
End
If <<(scratch 2.0 coming out) < [11 days away] > and <(scratch 2.0 coming out) > [1 day]>>
 Set [mood v] to [excited]
End
If <(scratch 2.0 coming out)= [already out]>
 Set [mood v] to [SUPER EXTRA EXTREMELY HAPPY]
End

Last edited by numberonegamers (2013-01-15 18:08:33)

Offline

 

#2411 2013-01-15 19:11:25

Nicolascomputers
Scratcher
Registered: 2012-12-19
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
explode
think I am weird! for (cat) seconds
stop all

Offline

 

#2412 2013-01-15 19:23:42

Nicolascomputers
Scratcher
Registered: 2012-12-19
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
say (blah) for (no) seconds
forever
turn into a tv 
run for (a lot of seconds)
set mood to (NOT HAPPY)

Offline

 

#2413 2013-01-15 19:41:50

Nicolascomputers
Scratcher
Registered: 2012-12-19
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

 
when gf clicked
forever
Say <wah wah wah!> for <cat> seconds
broadcast <Mario>

Offline

 

#2414 2013-01-15 19:45:52

Nicolascomputers
Scratcher
Registered: 2012-12-19
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

when bottle clicked
fly 7 seconds to bottlecap
forever
pie
end
cut 100 wires
obsolete!
broadcast bubbles
stop all

Offline

 

#2415 2013-01-15 19:59:37

Nicolascomputers
Scratcher
Registered: 2012-12-19
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

broadcast <????????????> 
Say <zero>

Offline

 

#2416 2013-01-15 20:52:04

cwoz
New Scratcher
Registered: 2013-01-12
Posts: 4

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.

when I receive [extremely long post]
say [You have too much time on your hands!]
hide

Offline

 

#2417 2013-01-16 17:00:44

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

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever if
 <(me) = [Excited v]
 say [I am excited!] for (Scratch 2.0) secs
end
when i receive [Scratch 2.0 v]
be [Happy v] for (A lot of) secs


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

Offline

 

#2418 2013-01-16 17:18:49

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

Re: Official [Scratchblocks] Testing Play Area

dr3w8 wrote:

when gf clicked
forever if <(me) = [Excited]>
 say [I am excited!] for (Scratch 2.0) secs
end
when i receive [Scratch 2.0 v]
be [Happy v] for (A lot of) secs

Fixed.


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

Offline

 

#2419 2013-01-16 20:33:43

Hawmy
Scratcher
Registered: 2012-11-22
Posts: 9

Re: Official [Scratchblocks] Testing Play Area

[scratchblocks]
when gf clicked
repeat forever
if touching color
brodcast level

Offline

 

#2420 2013-01-16 20:39:46

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

Re: Official [Scratchblocks] Testing Play Area

Hawmy wrote:

when gf clicked
repeat [forever]
 if (touching [color]?)
  broadcast [level v]
 end
end

Fixed to an extent.


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

Offline

 

#2421 2013-01-17 19:05:00

kirbyoshi
Scratcher
Registered: 2012-08-03
Posts: 11

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
say [look at my awesome games!!!] for [5] seconds
 if <(other person) = [happy]
  change [dude's happiness v] by [1000000000000]
 end

Offline

 

#2422 2013-01-18 11:29:05

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

Re: Official [Scratchblocks] Testing Play Area

cwoz wrote:

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.

when I receive [extremely long post]
say [You have too much time on your hands!]
hide

NOT FIXED
put [end] after a loop


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

Offline

 

#2423 2013-01-18 17:36:21

AgentCNF
Scratcher
Registered: 2012-08-27
Posts: 21

Re: Official [Scratchblocks] Testing Play Area

[scratchblocks]
when gf clicked
forever
say [Hiiiiii]
end


Go St. Louis Cardinals!!! I Hate The Cubs!

Offline

 

#2424 2013-01-18 17:37:24

AgentCNF
Scratcher
Registered: 2012-08-27
Posts: 21

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
say [did it work????]
end


Go St. Louis Cardinals!!! I Hate The Cubs!

Offline

 

#2425 2013-01-18 18:25:16

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

Re: Official [Scratchblocks] Testing Play Area

AgentCNF wrote:

when gf clicked
forever
say [did it work????]

Yes, yes it did.

Anyway, fixed. You had an extra "end" at the end of your forever block.


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

Offline

 

Board footer