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
Offline
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)
Offline
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 thanx again
Offline
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
Offline
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>
Offline
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
thanx again
![]()
You only have to put I recieve blocks on the sprites that you want to recieve it.
Offline
http://scratch.mit.edu/projects/AlBrookISD2142/706551
heres the link to play it if you want i think it's finished
Offline
Staraptor wrote:
How did you make the CPU?
for what?
Offline
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
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
join score: SCORE for (join()())
Offline