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

#1 2012-07-18 12:16:04

jono3814
New Scratcher
Registered: 2012-07-18
Posts: 17

game MENU'S

how would you go about making a menu for your game ? like an introduction page which users can choose options on the game ?

Offline

 

#2 2012-07-18 12:19:09

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: game MENU'S

It totally depends on your game. Basically, you would have a variable that is 1 if the menu is open, 0 if it's not, and if it's 1, disable game playing features until it's 0, and if it's 1, show the menu, and if the menu is closed, set it to 0, and if it's opened, set it to 1.


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#3 2012-07-18 12:27:37

Martiscratch
Scratcher
Registered: 2012-05-04
Posts: 100+

Re: game MENU'S

you will need a menu sprite with scripts like

when I receive [openmenu v]
show
go to...
broadcast [stuff v]
when I receive [closemenu]
hide
the option sprites all have
when I receive [stuff v]//or (openmenu)
show
go to...
when I receive [closemenu v]
hide
a opener has
when [opener] clicked
broadcast [openmenu v]
a closer has same but broadcasts closemenu

a answer by martiscratch


http://signaturecraft.us/signatures/eJw1yDEOgCAMBdC9p_gnICphdnA18QwoNZIAJRTD9Z184-uP74gKjxIvxi3tzaii3ZA-PjPijdgxvBpjcCYeeOtKW2Ou3OhIAbuUIOUvpdnNtDhH1tL0AQVCHgk~.png

Offline

 

#4 2012-07-18 15:45:39

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: game MENU'S

Have a look at thissmile

Last edited by Prestige (2012-07-18 15:45:52)


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

#5 2012-07-18 22:02:48

iNKGaming
New Scratcher
Registered: 2012-07-18
Posts: 18

Re: game MENU'S

Or, simply put, you could use a variable called "Scene" or whatever, and set it to 0, and when you wish to engage and begin the scene, make a button act as a trigger to set "Scene" to 1. Upon the variable being changed, a new menu, or the game itself, may arise, depending on how you program it.

- iNK

Offline

 

Board footer