Posted: 12th Jun 2007 17:43
I am working on a game called SKullWord! its about an IT Enterprise caleed SkullBox where it was hacked by some hackers tha later after shuting down the main controls disable the building defense entered the building! Its more like an FPS! Now i have some levels ready some models everything to realease a demo! I nly have a problem with the menu ! I woud like a menu with Start game training etc! Can smeone help me do it?
Posted: 12th Jun 2007 18:00
<plug> You could take a look at GUI Studio (http://www.andromedus.com) which is a really easy way of creating nice looking menus - as well as a load of other things! </plug>
Posted: 12th Jun 2007 18:01
Start out making some 2D images.

Once you have all the menu items, make a loop to handle the menu. This will be completely separate from the game loop. In the loop you would draw all the elements in order from bottom to top (depth wise) and check for mouseclicks between x1,y1 and x2,y2 for each button. Perhaps you could use an array of a button UTD to hold these positions rather than having to memorize them. If there has been a mouseclick in the button area of the "start" button, then do whatever initialization is necessary and then move on to the game loop.
Posted: 12th Jun 2007 20:25
try this.

+ Code Snippet
`hide the mouse
hide mouse

`load images for menu
load image "crusor.bmp",1
load image "start.bmp",2

`position the start button
sprite 2,300,300,2

`start main loop
do

`get mouse position
mx#=mousex()
my#=mousey()

`position my crusor at mouse position
sprite 1,mx#,my#,1

`end program loop
loop


This is the best way I have found to make menu's.

Hope I helped!
Posted: 12th Jun 2007 21:52
@ zapakitul: You may want to try this free GUI:
http://forum.thegamecreators.com/?m=forum_view&b=5&t=74399&p=0

I actually try to implement it into my game and I must say, it's possible to use, but you may need to tweak it a bit! (The whole source is included and so it's totally customizeable!)

I also must say that "Ric"'s PlugIn seems also be very nice (but you have to pay for it)!


Good luck!

Hoozer
Posted: 13th Jun 2007 0:17
If you want to do it yourself in DB then:

http://forum.thegamecreators.com/?m=forum_view&t=106004&b=10&p=0

TDK_Man
Posted: 14th Jun 2007 10:24
Oki thankx guys!