
09-21-2011, 04:43 PM
How to make a menu:
1. Make a square (put a back texture on it if you want)
2. Make text and put it on the square where you want it. (it doesn't matter if it overlapse if it is not on the same menu screen, but if you can avoid it, seperate them)
3. Make a variable to keep track of which screen you are on when you use the screen
4. Make as many "when mouse is clicked on something" as you need
5. Set all texts not being on the begining screen to "showing is false" in properties. (also make sure the menu variable is set to 1)
6. If you want to make 3 screens (eg. Start, instructions, options.) do the following: make sure all texts that are not on the begining screen to not showing.
Lets say I wanted to go to the instruction menu to change some thing and go back. One when I click on instruction text do all these, Make sure you can click on it by making sure it is on first screen (eg. screen variable = 1 (1 is always the start screen)) if it is true do a custom method that at least should: set all text on the start screen to not showing, set all text on instruction menu to showing, set menu variable to 2, make sure there is a button that will take you back to main screen.
The point of this is so that if I click on something that a didn't want to " It would not work because it would have to corespond* to the variable menu.
I hope I didn't waste your time, And made it to complicated
(I heard that if you set showing to false you can click somthing behind it, but this way is the way I do it)
I made a menu like this in my game Dodge!.
I hope this helps
__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
|