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

#3476 2013-05-04 20:31:13

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

Re: Official [Scratchblocks] Testing Play Area

Kyle2Death wrote:

Something for music...

when gf clicked
go to x: (-226) y: (170)
switch to costume [Music1 v]
set [Music v] to [1]
repeat until < (Lives:) = [0] >
  if < (Music) = [1] >
    switch to costume [Music1 v]
    repeat until < (Music) = [0] >
      if < touching [mouse-pointer v] ? >
        switch to costume [Music2 v]
      end
      if < not < touching [mouse-pointer v] ? > >
        switch to costume [Music1 v]
      end
    end
  end
  if < (Music) = [0] >
    stop all pinks
    switch to costume [Music Off1 v]
    repeat until < (Music) = [1] >
      if < touching [mouse-pointer v] ? >
        switch to costume [Music Off2 v]
      end
      if < not < touching [mouse-pointer v] ? > >
        switch to costume [Music Off1 v]
      end
    end
  end
end
stop script

when [Music] clicked
if < (Music) = [1] >
  set [Music v] to [0]
else
  set [Music v] to [1]
end
stop script

when gf clicked
show
set volume to (100) %
forever
  repeat until < (Music) = [0] >
    play sound [Garlagan_Thundag v] until done
  end
Lol.
smile

Fixed

now its fixed.


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

Offline

 

#3477 2013-05-05 00:39:51

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

When clicked
Set [hello v] to [hello]

Offline

 

#3478 2013-05-05 00:44:27

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

http://scratch.mit.edu/static/projects/beyen/3258528_sm.png

Offline

 

#3479 2013-05-05 01:19:57

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

ツ(((o(*゚▽゚*)o))) XD

Offline

 

#3480 2013-05-05 09:48:56

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

Re: Official [Scratchblocks] Testing Play Area


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

Offline

 

#3481 2013-05-05 11:47:07

jevks
New Scratcher
Registered: 2013-04-20
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

On the Cash Register (Coin):
[scratchblocks]
when gf clicked
hide
hide <variable (Amount)
set <(Amount) to <0>

Offline

 

#3482 2013-05-05 11:54:50

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

Re: Official [Scratchblocks] Testing Play Area

jevks wrote:

On the Cash Register (Coin):

when gf clicked
hide
hide variable [Amount v]
set [Amount v] to [0]

There ya go  wink


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

Offline

 

#3483 2013-05-05 11:55:23

jevks
New Scratcher
Registered: 2013-04-20
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

On the Cash Register (Coin):
[scratchblocks]
when gf clicked
hide variable (Amount)
set (Amount) to 0

Offline

 

#3484 2013-05-05 12:02:14

jevks
New Scratcher
Registered: 2013-04-20
Posts: 16

Re: Official [Scratchblocks] Testing Play Area

On the Cash Register (Coin):

when gf clicked
hide variable (Amount)
set (Amount) to 0
When I receive (Ball Price)
show
broadcast (Till)
show variable (Amount)
Same code as above made for hat and key too.

This code is made for each coin....

When I receive <Ball Price>
if <touching (Coin)?
hide
change Amount by 1
go to x: -144 y:-120>
else
<if Amount = (1)>
broadcast (Part 3)>
Each coin has a code like this one above for hat and key too

Offline

 

#3485 2013-05-06 02:12:36

nathan_tanara
New Scratcher
Registered: 2013-03-01
Posts: 12

Re: Official [Scratchblocks] Testing Play Area

show video url : [                                 ] [small mode v] [play v]

Offline

 

#3486 2013-05-06 02:46:15

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

jevks wrote:

On the Cash Register (Coin):

when gf clicked
hide variable [Amount v]
set [Amount v] to [0]
When I receive [Ball Price v]
show
broadcast [Till v]
show variable [Amount v]
Same code as above made for hat and key too.

This code is made for each coin....

When I receive [Ball Price v]
if <touching [Coin v]?>
hide
change [Amount v] by (1)
go to x:(-144) y:(-120)
else
if <(Amount) = (1)>
broadcast [Part 3 v]
Each coin has a code like this one above for hat and key too

Fixed.

Offline

 

#3487 2013-05-06 04:14:44

beyen
Scratcher
Registered: 2013-04-02
Posts: 53

Re: Official [Scratchblocks] Testing Play Area

set <hide> to <point in direction (º v)>
(XDDDDDDDDDDDD v)
say [

Offline

 

#3488 2013-05-06 07:50:37

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

Re: Official [Scratchblocks] Testing Play Area

when I receive [Scratch is closing May 6-8 v]
go to [Somewhere other than Scratch v]
wait (259200) secs//3 days
go to [Scratch v]
say [Scratch is back!] for ((Scratch) * (2.0)) secs


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

Offline

 

#3489 2013-05-06 08:37:35

themakerbaker
Scratcher
Registered: 2013-04-02
Posts: 13

Re: Official [Scratchblocks] Testing Play Area

This is for a platforming game, make sure the ground is black:


when gf clicked
forever  
if <touching color [#000008]?> 
change y by (5)
end
if <not <touching color [#000008]?>> 
change y by (-5)
end
if <key [space v] pressed?> 
repeat (10)  
change y by (10)
if <key [right arrow v] pressed?> 
point in direction (90 v)
move (6) steps
end
if <key [left arrow v] pressed?> 
point in direction (-90 v)
move (6) steps
end
end
repeat (10)  
change y by (-10)
if <key [right arrow v] pressed?> 
point in direction (90 v)
move (6) steps
end
if <key [left arrow v] pressed?> 
point in direction (-90 v)
move (6) steps
end
end
end
if <key [right arrow v] pressed?> 
point in direction (90 v)
move (6) steps
end
if <key [left arrow v] pressed?> 
point in direction (-90 v)
move (6) steps
end
end
Try it  wink

Offline

 

#3490 2013-05-06 09:36:07

legomanz
Scratcher
Registered: 2011-06-18
Posts: 100+

Re: Official [Scratchblocks] Testing Play Area

testing

when gf clicked
repeat until <(timer) > [10]>
  go to [mouse-pointer v]
end
say [testing] for (3) secs
my 100th post!!!!


http://i49.tinypic.com/2n0vnfm.png

Offline

 

Board footer