i've got a school project to make a game on scratch. i want to add a menu screen at the start that lets the player choose between start the game, instructions and possibly another one but i dont have a clue how to do it!!
any answers or tips would be great but the easier the better!
thanks .
Offline
tabitwitchit wrote:
i've got a school project to make a game on scratch. i want to add a menu screen at the start that lets the player choose between start the game, instructions and possibly another one but i dont have a clue how to do it!!
any answers or tips would be great but the easier the better!
thanks .
Hey There! I would recommend you downloading some projects that have the things you want and use the scripts that are available!
Help is nearby!
Sholvanic1058
Offline
forgive me for sounding like a confuzed idiot but what exactly is broadcast and what exactly does it do?
Offline
Don't worry, everyone in Scratch sounded like a confused idiot once, including me. A broadcast lets two or more sprites communicate with each other. For example:
Sprite 1:
when gf clicked say [Hi, sprite 2!] broadcast [sprite 1 says hi v]Sprite 2:
when I receive [sprite 1 says hi v] wait (0.3) secs //for aesthetics, no real need say [Hi, sprite 1!]
Offline
To make a make a menu screen, follow this set of instructions.
1.Draw your main menu stage in the backgrounds tab of the stage. Draw your help screen in another background. In another background, make your playing field (first level).
2.Make a sprite (name them what they are. e.g. Play, Help, etc.) for the Play button, the Help button, and the Menu button(for on the help screen. let's you go back to the menu).
3.Make this in the Play button.
when Play clicked broadcast Play Clicked
when I receive [Play Clicked v] hide4.On the stage put this.
when I receive [Play Clicked v] switch to background [playing field v]Repeat these scripts for the Help button (Chang the broadcast to "Help Clicked", and background to "help screen'.)
when gf clicked hide
when I receive [help clicked v] show
when Menu clicked broadcast [Menu Clicked v]
when I receive [Menu Clicked v] hide6.Go back to the stage and put this script.
when I receive [Menu Clicked v] switch to background [menu v]7.This script goes on the Play and Help buttons.
when I receive [Menu Clicked v] showYour done with the scripts and have a fully functioning menu system!
Offline
PikachuPal123456 wrote:
To make a make a menu screen, follow this set of instructions.
1.Draw your main menu stage in the backgrounds tab of the stage. Draw your help screen in another background. In another background, make your playing field (first level).
2.Make a sprite (name them what they are. e.g. Play, Help, etc.) for the Play button, the Help button, and the Menu button(for on the help screen. let's you go back to the menu).
3.Make this in the Play button.when Play clicked broadcast Play Clickedwhen I receive [Play Clicked v] hide4.On the stage put this.when I receive [Play Clicked v] switch to background [playing field v]Repeat these scripts for the Help button (Chang the broadcast to "Help Clicked", and background to "help screen'.)
5.On the Menu button, put these scripts.when gf clicked hidewhen I receive [help clicked v] showwhen Menu clicked broadcast [Menu Clicked v]when I receive [Menu Clicked v] hide6.Go back to the stage and put this script.when I receive [Menu Clicked v] switch to background [menu v]7.This script goes on the Play and Help buttons.when I receive [Menu Clicked v] showYour done with the scripts and have a fully functioning menu system!
Sorry about the red blocks (they shouldn't be that way. I messed up).
Offline
PikachuPal123456 wrote:
PikachuPal123456 wrote:
To make a make a menu screen, follow this set of instructions.
1.Draw your main menu stage in the backgrounds tab of the stage. Draw your help screen in another background. In another background, make your playing field (first level).
2.Make a sprite (name them what they are. e.g. Play, Help, etc.) for the Play button, the Help button, and the Menu button(for on the help screen. let's you go back to the menu).
3.Make this in the Play button.when[ Play v] clicked broadcast [Play Clicked v]when I receive [Play Clicked v] hide4.On the stage put this.when I receive [Play Clicked v] switch to background [playing field v]Repeat these scripts for the Help button (Chang the broadcast to "Help Clicked", and background to "help screen'.)
5.On the Menu button, put these scripts.when gf clicked hidewhen I receive [help clicked v] showwhen [Menu v]clicked broadcast [Menu Clicked v]when I receive [Menu Clicked v] hide6.Go back to the stage and put this script.when I receive [Menu Clicked v] switch to background [menu v]7.This script goes on the Play and Help buttons.when I receive [Menu Clicked v] showYour done with the scripts and have a fully functioning menu system!Sorry about the red blocks (they shouldn't be that way. I messed up).
Fixed.
Offline