How do I control menu layers?

Get help using Construct 2

Post » Mon Apr 10, 2017 7:27 pm

Greetings there! ^_^
I am trying to come up with the best possible way to create an inventory system with many layers, example;
Start -> Opens Menu -> Picks an option -> Opens new window (such as equipment) -> Clicking item opens another. Etc.
When pressing ESC -> Go back 1 step/window to the previous one.

I was wondering the best possible way to do this and control one window at a time without accidently pressing on the window behind it.

Is layer 'on screen' best option? U click 'Equip'-> moves current window offscreen and 'Equipment' Layer on screen? And so on?

Or is it with variable? IF X is true, then ..?

Anybody knows? ^_^
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Mon Apr 10, 2017 7:51 pm

I would use a variable condition. Assign each menu a unique number, and add variable ActiveMenu. Add the condition ActiveMenu=x so that you can only interact with the currect active menu, if they stack.

Alternatively, you can just replace the previous menu completely when opening a new one, then you dont have to worry about stacking/overlapping at all. You can save what the previous menu was in a variable as well, for when you need to go back.
Mistakes were made.
B
52
S
26
G
109
Posts: 1,616
Reputation: 61,653

Post » Tue Apr 11, 2017 2:29 pm

oosyrag wrote:I would use a variable condition. Assign each menu a unique number, and add variable ActiveMenu. Add the condition ActiveMenu=x so that you can only interact with the currect active menu, if they stack.

Alternatively, you can just replace the previous menu completely when opening a new one, then you dont have to worry about stacking/overlapping at all. You can save what the previous menu was in a variable as well, for when you need to go back.


Thanks, this information is useful ^_^
B
12
S
3
Posts: 164
Reputation: 1,530

Post » Fri Apr 14, 2017 3:00 pm

If there are any other/more advices, please tell me! ^_^
B
12
S
3
Posts: 164
Reputation: 1,530


Return to How do I....?

Who is online

Users browsing this forum: Darknessed and 48 guests