What is the best way to create menus? [SOLVED]

Discussion and feedback on Construct 2

Post » Tue Jul 11, 2017 2:30 am

Creating other layout, or creating another layer?
Last edited by willmonteirofx on Wed Jul 12, 2017 3:55 am, edited 1 time in total.
B
15
S
5
G
1
Posts: 36
Reputation: 1,605

Post » Tue Jul 11, 2017 8:01 am

It depends on your needs. If you want an overlaying menu, you need to use layers, otherwise a layout can be feasible as well. As a personal opinion: for in-game menu, I'd go with layers.
B
138
S
33
G
17
Posts: 1,561
Reputation: 20,839

Post » Tue Jul 11, 2017 10:53 am

The more time I spend in this game dev world the more I realise there is really no best way to do anything.

As long as what you are doing is reasonably performant / effecient and it works then go with it.

As well as layers or layouts you could also create/spawn the menu items when you need them then destroy when done. Or you could have them ready off screen then move into position as needed. You could do visible invisable with activated deactivated code. Or any or all of the above together .

To add. The most important thing is whatever way you choose you should be comfortable with the method, and it should be as adaptable , changeable, and reusable as possible.

I will close with the caveat that I've never made a full menu system yet so it is highly likely that I haven't a clue what I'm talking about.
Last edited by NetOne on Tue Jul 11, 2017 11:06 am, edited 1 time in total.
My in work shmup game CYBERSTORM DEVLOG - "That Terminator is out there. It can't be bargained with. It can't be reasoned with. It doesn't feel pity, or remorse, or fear. And it absolutely will not stop, ever, until you are dead"
B
47
S
25
G
7
Posts: 371
Reputation: 8,448

Post » Tue Jul 11, 2017 10:57 am

People lean towards using layers because they likely come across problems with going between layouts and values start resetting and they don't know how to handle it. If you are comfortable with layout transitions then I tend to use separate layouts for main menus, and make use of layers for in-game UI, boxes and dialogs that are likely to pop up.
B
48
S
19
G
84
Posts: 2,289
Reputation: 49,957

Post » Wed Jul 12, 2017 3:54 am

I understood, thank you all.
B
15
S
5
G
1
Posts: 36
Reputation: 1,605


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests