Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » (HELP) Need a main menu added
- letrainbleuetrouge
- Scratcher
100+ posts
(HELP) Need a main menu added
Could you explain how you want to structure your menu and what you want to put in the menu?
Thanks.
Thanks.
- ScratchGFX
- New to Scratch
18 posts
(HELP) Need a main menu added
All I need is a play button and a button explaining the controls of the game/instructions Could you explain how you want to structure your menu and what you want to put in the menu?
Thanks.
- cwrivera99
- Scratcher
500+ posts
(HELP) Need a main menu added
Create two sprite that are the buttons and position them wherever you want them. Then create two new backgrounds- the menu background and another wit the instructions. Give them the following code-
I think I included everything (correct me if I forgot something).
Use this for your menu and just broadcast “menu” when you need to open the menu.
When I receive [menu v] //give this and the next to both button sprites.
Show
switch to backdrop [Menu v]
when I receive [closemenu v]
Hide
when this sprite clicked //give this to the play button.
Broadcast [play v]
broadcast [closemenu v]
When this sprite clicked //give this to the instruction button.
Broadcast [closemenu v]
Switch to backdrop [instructions v]
Wait until <key (instructions close key) pressed?> //replace the "instructions close key" variable with whatever key you want to use as your key to close the instruction manual.
Broadcast [menu v]
when I receive [menu v] //give this to all other sprites that have nothing to do with the menu.
I think I included everything (correct me if I forgot something).
Use this for your menu and just broadcast “menu” when you need to open the menu.
Last edited by cwrivera99 (Dec. 10, 2013 06:07:32)
when this block is clicked::sensing hat//FYI, this is my old account that I no longer use. My current account is @DaSpudLord.If you are reading this… Then congratulations! You have found the part of my signature that was eaten by a kumquat! (On a side note, you are probably in a kumquat's stomach.) Now get out of the kumquat's stomach and go do something productive with your life. Like playing this game over and over again. Very productive.
forever {do (a [scratch v]::events ring)::sound}::extension cstart
say [what the...?] in (the language of [the moon people v]::red)::control
create [spontaneous v] explosion in [a flea's stomach]::motion
That's not right...::cend
- Discussion Forums
- » Help with Scripts
- » (HELP) Need a main menu added