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
4
G
1
Posts: 36
Reputation: 1,455

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
135
S
33
G
17
Posts: 1,557
Reputation: 20,721

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.
...
B
46
S
24
G
7
Posts: 319
Reputation: 8,201

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
47
S
17
G
81
Posts: 2,223
Reputation: 48,093

Post » Wed Jul 12, 2017 3:54 am

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


Return to Construct 2 General

Who is online

Users browsing this forum: Psynaptik and 7 guests