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

#1 2010-07-19 16:56:02

Corbinsor
Scratcher
Registered: 2010-07-13
Posts: 16

Need help on a target practice game

I have everything else exept for the fact that THE GAME CAN'T END!!! How do you make it when you're out of shots, the game plays a noise then ends? Here's what I tried:
[<when green flag clicked>
<if><{ Shots<(  <=>  )>0 }>
<play sound[ End

Offline

 

#2 2010-07-19 17:02:05

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Need help on a target practice game

If you want the entire game to stop playing, use - "Stop All" which is in the control blocks.  smile

Last edited by 06dknibbs (2010-07-19 17:02:35)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2010-07-19 17:08:34

Corbinsor
Scratcher
Registered: 2010-07-13
Posts: 16

Re: Need help on a target practice game

I tried that and it didn't work  sad

Offline

 

#4 2010-07-19 17:17:38

meowmeow55
Scratcher
Registered: 2008-12-24
Posts: 1000+

Re: Need help on a target practice game

What exactly do you want to do?
Here's something to try out:
[blocks]<when green flag clicked>
<forever>
<if><( <{ shots  }> <=> 0 )>
<broadcast[ end ]> [/blocks] (make scripts in other sprites with "when I receive[end]" for end stuff)
[blocks]<play sound[ End ]>[/blocks]
*insert other end scripting here*
[blocks]<stop all>
<end>
<end>[/blocks]


Yawn.

Offline

 

#5 2010-07-19 17:34:29

Corbinsor
Scratcher
Registered: 2010-07-13
Posts: 16

Re: Need help on a target practice game

meowmeow55 wrote:

What exactly do you want to do?
Here's something to try out:
[blocks]<when green flag clicked>
<forever>
<if><( <{ shots  }> <=> 0 )>
<broadcast[ end ]> [/blocks] (make scripts in other sprites with "when I receive[end]" for end stuff)
[blocks]<play sound[ End ]>[/blocks]
*insert other end scripting here*
[blocks]<stop all>
<end>
<end>[/blocks]

Thanks!!! But, I was also kinda looking for how to make a leaderboard...

Offline

 

#6 2010-07-19 18:00:55

laser100
Scratcher
Registered: 2009-12-04
Posts: 100+

Re: Need help on a target practice game

Corbinsor wrote:

meowmeow55 wrote:

What exactly do you want to do?
Here's something to try out:
[blocks]<when green flag clicked>
<forever>
<if><( <{ shots  }> <=> 0 )>
<broadcast[ end ]> [/blocks] (make scripts in other sprites with "when I receive[end]" for end stuff)
[blocks]<play sound[ End ]>[/blocks]
*insert other end scripting here*
[blocks]<stop all>
<end>
<end>[/blocks]

Thanks!!! But, I was also kinda looking for how to make a leaderboard...

It's currently not possible unless the Scratchers post their scores as comments and the take the highest 10. However, you can make a thing called highscore in the project. Wait a minute...

Here: http://scratch.mit.edu/projects/project1/1201218

Last edited by laser100 (2010-07-19 18:16:38)

Offline

 

#7 2010-07-19 18:22:49

Corbinsor
Scratcher
Registered: 2010-07-13
Posts: 16

Re: Need help on a target practice game

It's finished. [But no leaderboard] http://scratch.mit.edu/projects/Corbinsor/1201226

Offline

 

Board footer