Branching menus: How to create them?

For questions about using Classic.

Post » Sat Jun 23, 2012 11:57 pm

Hello! I'm Venomous Woe, and I'm new here. Pleased to meet you!

I'm designing a game using Construct Classic, and I'm running into a bit of trouble. See, the game is basically a 2D,top down, twin stick version of Wing Commander Privateer, and one of the functions I want to implement are space stations where the player can buy ships, receive quests, and save their game. What I'm stuck on is how to create the menu system.

See, I want the menu system to present four main options when the player comes in contact with the station: Buy Ships, Talk, Trade, and Save Game. From there I want to implement additional options. Here's an example of what I'm talking about (names are tentative and subject to change):

Root Menu -> Buy Ship -> Viper-class (2000 credits)
                      Scythe-class (5000 credits)
                      Doberman-class (15000 credits)
              Talk -> Andrew Veers
                      Emily Free
                      Donald Stone -> (Quest Line)
              Trade -> Buy -> (List of commodities)
                      Sell -> (List of possessions)
              Save Game -> (List of save slots)

Any how I can implement this? Thanks! Having a lot of fun with Construct so far!

Posts: 3
Reputation: 256

Post » Sun Jun 24, 2012 12:53 am

You'll have to make the menu on its own layout, then use layer inheritance( that or the layout object, but the layer inheritance seems to work better.) to get it into the main game screen.

you'll probably need to compile each group into some sort of data file, array, hash table, .INI file.. whatever you feel comfortable working with.

then in the menu layer have the info printed out using the list box object, if you want the quick, easy, and ugly option.
or make your own list using sprites, loops, and functions. if you want it to look pretty
making menus in construct is probably one of the more difficult things to do. there's no real quick fix that I know of.

If any of this seems too confusing, just look around the forums for examples,or just ask, and me and who ever else will help elaborate a bit more.
Bartosh2012-06-24 00:59:03
Posts: 249
Reputation: 2,323

Post » Sun Jun 24, 2012 1:16 am

[QUOTE=Bartosh]making menus in construct is probably one of the more difficult things to do. there's no real quick fix that I know of.[/QUOTE]

You can say that again!
Posts: 426
Reputation: 2,458

Post » Sun Jun 24, 2012 1:22 am

Thanks Bartosh!

I think I might need that elaboration though, as I'm not sure how to use ANY of those objects. I'll keep plugging away and looking at the forums, but I'm not sure how far it's going to get me.

Thank you very much for your help, though.
Posts: 3
Reputation: 256

Post » Sun Jun 24, 2012 2:27 am

I'd just design the menu on the first layout as global objects in their own layer on each layout. Then you can show/hide the layer whenever you want menu options to work by importing a global event sheet for them.

Maybe also use a global variable to decide when to show/hide the menu and how it functions.

Using the menu's code, you can change the text/animation frame of each menu option

Edit: Ah, the menu objects need only be placed on the first layout, other layouts just need the additional "Menu" layer in them at the top of the stack.Jayjay2012-06-24 11:53:53
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
Posts: 2,246
Reputation: 20,754

Post » Sun Jun 24, 2012 6:13 am

Thanks for the tips, Jayjay. Thanks to you guys, I've got a branching menu now. It's not perfect or complete, but I do have it thanks to the use of an INI file and a global variable. And I didn't have to do multiple layouts!

Thanks for all your help, guys. I'll be sure to come back if I have any other questions.
Posts: 3
Reputation: 256

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest