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

#1 2009-10-05 14:46:41

AlBrookISD2142
Scratcher
Registered: 2009-10-01
Posts: 9

Broadcasting

I'm working on a Pong game and i have it almost completed. I have the "Score" going up every time the ball hits the Bumper and so on and so forth. Now i just cant figure out how to broadcast the score when the scripts stop and you lose. If anybody can help me i'd ver much appreciate it. Thank you  smile

Offline

 

#2 2009-10-05 20:13:11

martianshark
Scratcher
Registered: 2008-03-24
Posts: 1000+

Re: Broadcasting

Like this:

<when I receive[ Game Over
<say[ Your score is...  ]for( 2 )secs>
<say[ <{ score  }> ]for( 2 )secs>
or something like that. Is that what you meant?

Last edited by martianshark (2009-10-05 20:14:51)


http://img.geocaching.com/stats/img.aspx?txt=martianshark&amp;uid=e6cdc2c8-2476-4abd-9994-27f857396579&amp;bg=1

Offline

 

#3 2009-10-05 20:46:31

AlBrookISD2142
Scratcher
Registered: 2009-10-01
Posts: 9

Re: Broadcasting

Wow. Lol. I never thought of that haha. My friend told me that if I have the When I receive control is in use....it has to be on all of the sprites? True? I thank you for your help. I'll try what you've told me and give it a shot  smile  thanx again  smile

Offline

 

#4 2009-10-05 22:11:38

AlBrookISD2142
Scratcher
Registered: 2009-10-01
Posts: 9

Re: Broadcasting

well lol....i took the easy way out and just put it in the instructions that if you want to display your score just hit space lol. but thanx for your time  smile   smile

Offline

 

#5 2009-10-05 23:01:14

martianshark
Scratcher
Registered: 2008-03-24
Posts: 1000+

Re: Broadcasting

I posted my score. By the way, there's a better way to do it if you have 1.4. You can use the join block like this:

<say[ <join [ your score is ] [ <{ score  }> ] ]for(  )secs>


http://img.geocaching.com/stats/img.aspx?txt=martianshark&amp;uid=e6cdc2c8-2476-4abd-9994-27f857396579&amp;bg=1

Offline

 

#6 2009-10-05 23:02:45

martianshark
Scratcher
Registered: 2008-03-24
Posts: 1000+

Re: Broadcasting

AlBrookISD2142 wrote:

Wow. Lol. I never thought of that haha. My friend told me that if I have the When I receive control is in use....it has to be on all of the sprites? True? I thank you for your help. I'll try what you've told me and give it a shot  smile  thanx again  smile

You only have to put I recieve blocks on the sprites that you want to recieve it.


http://img.geocaching.com/stats/img.aspx?txt=martianshark&amp;uid=e6cdc2c8-2476-4abd-9994-27f857396579&amp;bg=1

Offline

 

#7 2009-10-10 15:15:39

Staraptor
Scratcher
Registered: 2008-07-29
Posts: 1000+

Re: Broadcasting

How did you make the CPU?


"Life is a video game. No matter how good you get, you always end up getting zapped." -Shiregu Miamoto

Offline

 

#8 2009-10-10 16:23:12

AlBrookISD2142
Scratcher
Registered: 2009-10-01
Posts: 9

Re: Broadcasting

http://scratch.mit.edu/projects/AlBrookISD2142/706551

heres the link to play it if you want  smile  i think it's finished

Offline

 

#9 2009-10-10 16:24:15

AlBrookISD2142
Scratcher
Registered: 2009-10-01
Posts: 9

Re: Broadcasting

Staraptor wrote:

How did you make the CPU?

for what?

Offline

 

#10 2009-11-09 03:56:36

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Broadcasting

martianshark wrote:

I posted my score. By the way, there's a better way to do it if you have 1.4. You can use the join block like this:

<say[ <join [ your score is ] [ <{ score  }> ] ]for(  )secs>

Wow! i have 1.4!

Offline

 

#11 2009-11-14 17:35:36

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Broadcasting

martianshark wrote:

Like this:

<when I receive[ Game Over
<say[ Your score is...  ]for( 2 )secs>
<say[ <{ score  }> ]for( 2 )secs>
or something like that. Is that what you meant?

There is a easyer way if you use 1.4!
<when i revice> (game over)
<say> (join () ()) <for 2 secs>
<end>

Offline

 

Board footer