Discuss Scratch

Mevangel
Scratcher
3 posts

Start/End Screen

How do I make a start screen before my game plays with a title and then a start button.

An end screen when my game ends

and a reset button to get back to the start screen when the game ends.

Also is there a way to display a high score?

Thank you for your help!
Mmaarten
Scratcher
100+ posts

Start/End Screen

To make a start screen: make a background with the name, info,…..
and put this in the script:
whenclickedswitchbackdroptoNAME OF YOUR FIRST BACKGROUND

AND

whenIreceiveTo startswitchbackdroptoNAME OF THE "PLAY" Background
Then make all your sprites and put in all sprites' scripts:
whenclickedshow

AND
whenIreceive To starthide

When you make your start button make sure that this thread is in your script:
whenthisspriteclickedbroadcastTo start


For all sprites that you use during the game , use this:
whenclickedhide
AND
whenIreceiveTo startshow
that are the basics for a start screen
Mmaarten
Scratcher
100+ posts

Start/End Screen

For the end screen it is a liil' bit different: you need a signal that indicates that the game has ended.
This will most likely look like this:
broadcastMESSAGE

if you have that, go ahead and make in EVERY sprite you use during the game this block:
whenIreceiveMESSAGEhide
and in every sprite you want to use on the end screen:
whenIreceiveMESSAGEshow

your background can be changed (if needed) by making this block:
whenIreceiveMESSAGEswitchbackdroptoNAME OF END BACKGROUND
And finnaly to reset your game just click the flag

Last edited by Mmaarten (June 1, 2016 17:59:14)

Mmaarten
Scratcher
100+ posts

Start/End Screen

There is a way to display high scores but you cant use it. Because you do not have the “scratcher” rank.Just be active on the site and you will get asked to recieve your rank.
once you have that rank, contact me (on my profile) and ill' be happy to learn you how to use cloud variables.
Mevangel
Scratcher
3 posts

Start/End Screen

Thanks so much
ignas04
Scratcher
500+ posts

Start/End Screen

Hi, @Mevangel.
Here is a tutorial that I hope is easy and better to understand:
For a start screen:
Any sprite:
whenclickedswitchbackdroptoStartScreenBackdrop
Start button:
whenclickedforeverifbackdropname=StartScreenBackdropthenshowelsehide
Also start button:
whenthisspriteclickedswitchbackdroptoGameBackdrop
When the game ends switch the backdrop to EndScreenBackdrop. Then:
Restart button:
whenclickedforeverifbackdropname=EndScreenBackdropthenshowelsehide
Also restart button:
whenthisspriteclickedswitchbackdroptoStartScreenBackdrop
With those blocks your start and restart buttons will appear and disappear automatically.

I hope I've helped!
ignas04
Scratcher
500+ posts

Start/End Screen

If you want to save highscores it is a little bit different - you've got to use cloud lists like this one: https://scratch.mit.edu/projects/22003344/ . Message me, because I've got a better way to save highscores! Thanks!
asivi
Scratcher
1000+ posts

Start/End Screen

ignas04 wrote:

Hi, @Mevangel.
Here is a tutorial that I hope is easy and better to understand:
For a start screen:
Any sprite:
whenclickedswitchbackdroptoStartScreenBackdrop
Start button:
whenclickedforeverifbackdropname=StartScreenBackdropthenshowelsehide
Also start button:
whenthisspriteclickedswitchbackdroptoGameBackdrop
When the game ends switch the backdrop to EndScreenBackdrop. Then:
Restart button:
whenclickedforeverifbackdropname=EndScreenBackdropthenshowelsehide
Also restart button:
whenthisspriteclickedswitchbackdroptoStartScreenBackdrop
With those blocks your start and restart buttons will appear and disappear automatically.

I hope I've helped!
Why those forever loops? Remember this block:
whenbackdropswitchesto
ignas04
Scratcher
500+ posts

Start/End Screen

asivi wrote:

ignas04 wrote:

Hi, @Mevangel.
Here is a tutorial that I hope is easy and better to understand:
For a start screen:
Any sprite:
whenclickedswitchbackdroptoStartScreenBackdrop
Start button:
whenclickedforeverifbackdropname=StartScreenBackdropthenshowelsehide
Also start button:
whenthisspriteclickedswitchbackdroptoGameBackdrop
When the game ends switch the backdrop to EndScreenBackdrop. Then:
Restart button:
whenclickedforeverifbackdropname=EndScreenBackdropthenshowelsehide
Also restart button:
whenthisspriteclickedswitchbackdroptoStartScreenBackdrop
With those blocks your start and restart buttons will appear and disappear automatically.

I hope I've helped!
Why those forever loops? Remember this block:
whenbackdropswitchesto
Now I do
Mevangel
Scratcher
3 posts

Start/End Screen

Awesome thanks all
ignas04
Scratcher
500+ posts

Start/End Screen

Mevangel wrote:

Awesome thanks all
blackswan2428
Scratcher
70 posts

Start/End Screen

thx sooo much guys for helping me
JS102502
New Scratcher
1 post

Start/End Screen

deck26
Scratcher
1000+ posts

Start/End Screen

JS102502 wrote:

Please don't spam or necropost.
Pomamina815
Scratcher
5 posts

Start/End Screen

.


Last edited by Pomamina815 (Nov. 29, 2018 11:36:42)

PinkPawPrints63
Scratcher
7 posts

Start/End Screen

whenclickedbroadcastshow startwhenIreceiveshow startshowwaituntilkeyspacepressed?broadcastnew gamehide

start screen

deck26
Scratcher
1000+ posts

Start/End Screen

PinkPawPrints63 wrote:

whenclickedbroadcastshow startwhenIreceiveshow startshowwaituntilkeyspacepressed?broadcastnew gamehide

start screen

Please check the date of the original topic before posting.
9617saphs
Scratcher
3 posts

Start/End Screen

NONE OF THESE HELPED WITH CREATING ONE THAT ENTERS AND EXITS A SCREEN-

*explodes in anger*
AFNNetworkK12
Scratcher
1000+ posts

Start/End Screen

9617saphs wrote:

NONE OF THESE HELPED WITH CREATING ONE THAT ENTERS AND EXITS A SCREEN-

*explodes in anger*
Please don't necropost, (you are new so necroposting means that you post on a post after a long time)

deck26 wrote:

Please check the date of the original topic before posting.
9617saphs
Scratcher
3 posts

Start/End Screen

Oh ssoooorry about that… AFNNetworkK12.

I guess I'm just new.

Powered by DjangoBB