Game Menu

For questions about using Classic.

Post » Wed Sep 24, 2008 4:17 am

Do you guys have any suggestion on how to make a Main Menu with Sub-menus and stuff, that is controlled with the keyboard?

I had a couple of ideas, but I ended up ditching them because they ended up being really over-complicated.

Thanks.
B
2
S
1
G
4
Posts: 92
Reputation: 1,384

Post » Wed Sep 24, 2008 4:56 am

Here's a quick example I whipped up.

Keyboard Controlled Menu

The basic idea behind it is you have two global variables: 'menu' and 'submenu'. Menu acts as the current selected choice, while 'submenu' determines which submenu you're on. Pressing down and up will add and subtract 1 from menu respectively. Hitting enter will, based on the value of menu, take you to a different submenu. The bottom choice will always take you to the main menu. You could ultimately string together an unlimited ammount of these submenu's, also altering the number of choices, but this is just a quick example. Hope that helps. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests