Discuss Scratch

Jolt17
Scratcher
28 posts

Could someone help with a win screen?

I made a game kind of like galaga and i don't know how to make them win when the enemy's are gone. My account is Jolt17 and the game is called Galaga First draft if you want to check it out or see inside to help.
EA_AE
New Scratcher
12 posts

Could someone help with a win screen?

I would help but I need a link to the project.
cm8263
Scratcher
100+ posts

Could someone help with a win screen?

Hi Jolt17,

You need to add a score system, you can make a simple one by doing this….

1. Click on Data and Click ‘Make New Variable’ then call it ‘score’.

2. Add this to your enemy script…

change [score v] by (1)

3. Make a new background (white is best)

4. For example say you have 5 enemies, you would add under the new background this…

when green flag clicked
wait until <(score) = [5]>
switch backdrop to [new backdropv]
forever
say (join [Well done] [ (username)]) for (3) secs
say [your score was...] for (2) secs
say (score) for (3) secs
end

Try that and tell me if it works

-Christopher

P.S (username) is the blue user name under ‘sensing’
Jolt17
Scratcher
28 posts

Could someone help with a win screen?

cm8263,
Thanks for replying I get it now but where do you find the score blocks? I saw it was orange so do you have to create a variable called “score”? By the way here's the link: https://scratch.mit.edu/projects/65330614/#editor

-Jake
Jolt17
Scratcher
28 posts

Could someone help with a win screen?

So I made a score variable and now have a win screen thank you for your help.
https://scratch.mit.edu/projects/65330614/#player
MHLD2017
New Scratcher
1 post

Could someone help with a win screen?

What if you have only one enemy?
learncsscratch
Scratcher
100+ posts

Could someone help with a win screen?

using score to count your enemies could be a problem if you decide to make different types of enemies worth different points.

Try creating a variable called “enemy count”…add one each time you clone an enemy and subtract one each time you delete a clone. When the enemy count reaches 0 you have defeated all the enemies… This will operate independently of the score so you can assign different point values for different enemies and even subtract points if the user does something you consider bad…

In addition, you can save the count value as a local variable inside of each clone and that will give you a unique identifier for each enemy

Happy Scratching!!!

Last edited by learncsscratch (Feb. 15, 2017 18:45:35)

GreenTeaCup
New Scratcher
1 post

Could someone help with a win screen?

Whee this helped!!!
deck26
Scratcher
1000+ posts

Could someone help with a win screen?

GreenTeaCup wrote:

Whee this helped!!!
Good, but no need to necropost to say so.
fire2379
Scratcher
3 posts

Could someone help with a win screen?

what if you are making an ice hockey game and you need to announce 2 scores?
deck26
Scratcher
1000+ posts

Could someone help with a win screen?

fire2379 wrote:

what if you are making an ice hockey game and you need to announce 2 scores?
Please create a new topic rather than necroposting.
ashleycomito39
New Scratcher
1 post

Could someone help with a win screen?

I would like my game to play a game over screen when the timer hits 0. then when the green flag is clicked to go back to the start. for some reason, the game over screen is stuck and when I press the green flag it plays the start screen for 0.3 seconds and then goes back to the game over screen! help me
pikmipop123
Scratcher
1 post

Could someone help with a win screen?

Dear ashleycomito39,

If you need a game over screen when the timer hits 0…
1. go to the control blocks
2. use the “if ____, then…” block
3. go to the operators blocks and use the “___=___” block
4. fill the first blank with a “timer” block from the sensing blocks
5. fill the second blank with the number “0”
6. remember to click “save”




YOUR WELCOME!!!!!!!!

Last edited by pikmipop123 (Dec. 29, 2019 02:10:00)

tiffantsoftball22
New Scratcher
1 post

Could someone help with a win screen?

how do you make a u lose or u win screen
deck26
Scratcher
1000+ posts

Could someone help with a win screen?

tiffantsoftball22 wrote:

how do you make a u lose or u win screen
Please create your own topic instead of posting on an old one. Many people helping will ignre this because it is old or respond to the original post rather than yours. Much better to have your own topic.

Powered by DjangoBB