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

#2876 2013-03-18 17:29:49

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

Re: Official [Scratchblocks] Testing Play Area

when <when gf clicked> clicked//when <when gf clicked> clicked


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

Offline

 

#2877 2013-03-18 20:18:14

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

dr3w8 wrote:

when  gf clicked //when when gf clicked 

I removed the <>'s form the script. You don't need them  big_smile


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#2878 2013-03-18 20:48:01

qwerts9000
Scratcher
Registered: 2011-02-21
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
set [ScrollX v] to [200]
set [chicken v] to [700]
set [vrvrvrv v] to [19]
end

Last edited by qwerts9000 (2013-03-18 20:48:16)

Offline

 

#2879 2013-03-18 23:22:10

emmyep2002
Scratcher
Registered: 2013-02-27
Posts: 18

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
repeat until < (scratch) = (awesomeness)
  say [Let's hope this works!] for (10) secs
end

Offline

 

#2880 2013-03-19 03:56:23

sammyuri
New Scratcher
Registered: 2013-03-16
Posts: 17

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
set [room v] to [0]
go to x: [0] y: [0]
switch to costume [question]
ask [do you want a adventure?] and wait
if <(answer) = [no]>
stop all
else
broadcast [adventure v]
end
when I recieve [adventure v]
go to x: [-200] y: [-140]
set [room v] to [1]
wait [1] secs
broadcast [more cats v]
wait [1] secs
say [hello!]
wait [2] secs
ask [do you want to come to their stall?] and wait
if <(answer) = [yes]
broadcast [stall v]
set [room v] to [2]
else
stop all
end

Offline

 

#2881 2013-03-19 07:51:14

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

Re: Official [Scratchblocks] Testing Play Area

7734f wrote:

dr3w8 wrote:

when <when gf clicked> clicked //when <when gf clicked> clicked

I removed the <>'s form the script. You don't need them  big_smile

I was trying to put a hat block inside a hat block, not make a "when green flag clicked" block.


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

Offline

 

#2882 2013-03-19 08:16:21

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

sammyuri wrote:

when gf clicked
set [room v] to [0]
go to x: [0] y: [0]
switch to costume [question]
ask [do you want a adventure?] and wait
if <(answer) = [no]>
stop all
else
broadcast [adventure v]
end
when I recieve [adventure v]
go to x: [-200] y: [-140]
set [room v] to [1]
wait [1] secs
broadcast [more cats v]
wait [1] secs
say [hello!]
wait [2] secs
ask [do you want to come to their stall?] and wait
if <(answer) = [yes]>
broadcast [stall v]
set [room v] to [2]
else
stop all
end

fixed.

Last edited by Liamadams (2013-03-19 08:17:12)


http://i39.tinypic.com/3309476.jpg

Offline

 

#2883 2013-03-19 16:10:28

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

Re: Official [Scratchblocks] Testing Play Area

Liamadams wrote:

sammyuri wrote:

when gf clicked
set [room v] to [0]
go to x: [0] y: [0]
switch to costume [question]
ask [do you want a adventure?] and wait
if <(answer) = [no]>
stop all
else
broadcast [adventure v]
end
when I receive [adventure v]
go to x: [-200] y: [-140]
set [room v] to [1]
wait [1] secs
broadcast [more cats v]
wait [1] secs
say [hello!]
wait [2] secs
ask [do you want to come to their stall?] and wait
if <(answer) = [yes]>
broadcast [stall v]
set [room v] to [2]
else
stop all
end

fixed.

Fixed.


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

Offline

 

#2884 2013-03-19 17:00:33

piotrgrochowskiNew
Scratcher
Registered: 2013-03-05
Posts: 27

Re: Official [Scratchblocks] Testing Play Area

TrickieParke wrote:

stop all <when flag clicked>
if//
if//
if//
if//
if//
if//
if//
if//
end
end
end
end
end
end
end
end
end
and
end
FONGRATULATIONS NO! NO!
AS BOOLEANS <stop all>//stop all
AS BOOLEANS <when clicked>//when clicked
AS BOOLEANS <if>//if
AS BOOLEANS <else>//else
end
if <move (10) steps>//if moving 10 steps
say [I MOVE 10 STEPS!!!!!]
end

Tip: you can see the code on quoting

Offline

 

#2885 2013-03-19 22:23:14

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

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 [hunger v]
say [I'm hungry] for [2] secs
broadcast [lunch Time! v]

Offline

 

#2886 2013-03-19 22:32:09

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

[scratchblock]
when gf clicked
repeat until < (happiness) = [100] or (cheeseburgers) = [0] >
    [Eat cheeseburger v] for (10) secs
    change [happiness v] by [1]
    change [cheeseburgers v] by [1]
end
if < (cheeseburgers = [0] and not happiness = [100] >
    say [More CHEESEBURGERS!] for (5) secs
end
if < happiness = [100] >
    say [Horray!!] for (5) secs
end
[/scratchblock]

Offline

 

#2887 2013-03-19 22:37:07

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
repeat until < (happiness) = [100] or (cheeseburgers) = [0] >
    [Eat cheeseburger v] for (10) secs
    change [happiness v] by [1]
    change [cheeseburgers v] by [1]
end
if < (cheeseburgers) = [0] and < not (happiness) > = [100] >
    say [More CHEESEBURGERS!] for (5) secs
end
if < happiness = [100] >
    say [Horray!!] for (5) secs
end

Offline

 

#2888 2013-03-19 22:40:58

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

when I receive [Fast Food v]
repeat until < < (happiness) > = [100] or < (cheeseburgers) = [0] > >
    [Eat cheeseburger v] for (10) secs
    change [happiness v] by [1]
    change [cheeseburgers v] by [1]
end
if < < (cheeseburgers) = [0] > and < not (happiness) = [100] > >
    say [More CHEESEBURGERS!] for (5) secs
end
if < (happiness) = [100] >
    say [Horray!!] for (5) secs
end

Offline

 

#2889 2013-03-19 22:45:16

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

when I receive [Fast Food v]
repeat until < < (happiness) = [100] > or < (cheeseburgers) = [0] > >
    [Eat cheeseburger v] for (10) secs
    change [happiness v] by [1]
    change [cheeseburgers v] by [1]
end
if < < (cheeseburgers) = [0] > and < < not (happiness) = [100] > > >
    say [More CHEESEBURGERS!] for (5) secs
end
if < (happiness) = [100] >
    say [Horray!!] for (5) secs
end
Fixed!

Offline

 

#2890 2013-03-19 22:52:49

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

when I receive [Fast Food v]
repeat until < < (happiness) = [100] > or < (cheeseburgers) = [0] > >
    [Eat cheeseburger v] for (10) secs
    change [happiness v] by [1]
    change [cheeseburgers v] by [1]
end
if < < (cheeseburgers) = [0] > and < < not (happiness) = [100] > > >
    say [More CHEESEBURGERS!] for (5) secs
end
if < (happiness) = [100] >
    say [Horray!!] for (5) secs
end
Or not, but this one is!

Offline

 

#2891 2013-03-19 22:57:15

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

when I receive [Fast Food v]
repeat until < < (happiness) = [100] > or < (cheeseburgers) = [0] > >
    [Eat cheeseburger v] for (10) secs
    change [happiness v] by [1]
    change [cheeseburgers v] by [1]
end
if < < (cheeseburgers) = [0] > and < not (happiness) = [100] > >
    say [More CHEESEBURGERS!] for (5) secs
end
if < (happiness) = [100] >
    say [Horray!!] for (5) secs
end
BLARG.... Too many <

Offline

 

#2892 2013-03-19 23:00:42

travja
New Scratcher
Registered: 2013-03-19
Posts: 10

Re: Official [Scratchblocks] Testing Play Area

when I receive [Fast Food v]
repeat until < < (happiness) = [100] > or < (cheeseburgers) = [0] > >
    [Eat cheeseburger v] for (10) secs
    change [happiness v] by [1]
    change [cheeseburgers v] by [1]
end
if < < (cheeseburgers) = [0] > and < not < (happiness) = [100] > > >
    say [More CHEESEBURGERS!] for (5) secs
end
if < (happiness) = [100] >
    say [Horray!!] for (5) secs
end
OK! All fixed

Offline

 

#2893 2013-03-20 03:43:07

sammyuri
New Scratcher
Registered: 2013-03-16
Posts: 17

Re: Official [Scratchblocks] Testing Play Area

this is background:

when gf clicked
delete (all) of [users v]
delete (all) of [passwords v]
hide variable [user v]
hide variable [usercount v]
hide variable [password v]
switch to background [user? v]
repeat until <(answer) < [11]>
ask [type your username (with up to 10 characters)] and wait
end
add (answer) to [users v]
repeat until <(answer) < [10]>
ask [now your password (with up to 9 characters)] and wait
end
add (answer) to [passwords v]
broadcast [play v]
forever
play sound [_MUSIC_ v]
end

now the intro sprite

when gf clicked
hide

when I receive [play v]
show
switch to costume [intro v]
go to x: [0] y: [0]
set [whirl v] effect to [0]
repeat (7)
change [whirl v] effect by [1]
end
repeat (10)
change [whirl v] effect by [10]
end
broadcast [start v]
I am tired of writing down scripts. I will do more this afternoon!

Offline

 

#2894 2013-03-20 03:59:12

sammyuri
New Scratcher
Registered: 2013-03-16
Posts: 17

Re: Official [Scratchblocks] Testing Play Area


back to the intro sprite:

when I receive [start v]
hide

now the users sprite:

when gf clicked
hide

when I receive [start v]
switch to costume [users v]
show
go to x: [0] y: [0]

when I recieve [game v]
hide

now arrow 1:

when gf clicked
hide

when I recieve [start v]
go to x: [-37] y: [31]
show variable [user v]
show
switch to costume [arrow v]
I got tired again.

Offline

 

#2895 2013-03-20 13:05:07

sammyuri
New Scratcher
Registered: 2013-03-16
Posts: 17

Re: Official [Scratchblocks] Testing Play Area


the alarm clock:

when gf clicked
broadcast [gf clicked v]
go to x: [0] y: [0]
set [time v] to [12:00 pm]
show
forever
change [time v] by [1]
end

when I receive [gf clicked v]
show

when I receive [alarm clock ring v]
play sound [alarm v]
repeat (25)
next costume
end

now the boy:

when I receive [gf clicked v]
show
go to x: [30] y: [0]
switch to costume [asleep v]
wait until <(time) = [7.30 am]>
broadcast [alarm clock ring v] and wait
switch to costume [yawn v]
say [yawn] for (2) secs
switch to costume [getting up v]
say [what day is it?] for (2) secs
switch to costume [checking calendar v]
wait [1] secs
delete [all] of [days v]
add [1] to [days v]
add [2] to [days v]
add [3] to [days v]
add [4] to [days v]
add [5] to [days v]
add [6] to [days v]
add [7] to [days v]
switch to costume [getting up v]
set [day v] to (item ((day) + [1]) of [days v])
if <(day) > [5]>
say [HOORAY! WEEKEND!] for [3] secs
broadcast [weekend v]
else
broadcast [school day v]
end

say [im tired of writing down scripts] for (infinite) secs

Offline

 

#2896 2013-03-20 13:21:04

sammyuri
New Scratcher
Registered: 2013-03-16
Posts: 17

Re: Official [Scratchblocks] Testing Play Area

back.

back to the boy:

when gf clicked
set [day v] to [1]

when I recieve [weekend v]
switch to costume [asleep v]
wait until <(time) = [9.00 am]>
switch to costume [getting up v]
go to x: [-150] y: [0]
switch to costume [dressed v]
wait [1] secs
glide [1] secs to x: [280] y: [0]
broadcast [kitchen v]
switch to costume [at table v]
wait [1] secs
switch to costume [eating food v]
wait [3] secs
switch to costume [dressed v]
glide [1] secs to x: [-280] y: [0]
broadcast [living v]

say [I am tired of writing down scripts] for (infinite) secs

Offline

 

#2897 2013-03-20 18:10:39

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

Re: Official [Scratchblocks] Testing Play Area

define <draw>
<current [minute v]>
create clone of [sprite1 v]
delete this clone
turn video [on v]
Blocks from Scratch 2.0.


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

Offline

 

#2898 2013-03-20 23:59:34

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Re: Official [Scratchblocks] Testing Play Area

say [#235234] for [#356454] secs
when [#464536] clicked
z[#464357][#547754][#346454]a
when <when OMG <when STOP <when gf clicked> GO AWAY gf clicked> NVM gf clicked> NOPE gf clicked SECRET MESSAGE
hmm, interesting use of color

Last edited by KrIsMa (2013-03-21 00:03:16)


http://blocks.scratchr.org/API.php?user=KrIsMa&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/2pzic0m.png&amp;offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#2899 2013-03-21 09:22:32

piotrgrochowskiNew
Scratcher
Registered: 2013-03-05
Posts: 27

Re: Official [Scratchblocks] Testing Play Area

set pen color to <pick random [#123456] [#abcdef]>
if <touching color <pen color> ?>
say <> and wait
else
say [nothing]
end
(join [] [] [])
//Try to make this on Panther and send image (don't such that as obsolete blocks).
//How to send image from file?

Offline

 

#2900 2013-03-21 12:51:17

kristianmischke
Scratcher
Registered: 2010-05-24
Posts: 7

Re: Official [Scratchblocks] Testing Play Area

when gf clicked
forever
go to x: (cloud x) y: (cloud y)
end

Offline

 

Board footer