HUDs and different layouts.

Discussion and feedback on Construct 2

Post » Mon Oct 01, 2012 9:54 pm

On my current project, I have each level in a different layout, and since the start of it I wanted to create a single HUD that would work with each.

First I created the HUD dynamically when I load the level, but this is a pain to create and maintain if the HUD is complex.

Then I created a HUD on the first level and made it global. This works - except if you jump into a different level - if you are testing or if you are continuing a saved game.

And today I found the solution... which basically involves checking to see if the HUD is loaded - and if it isn't switching the layout to the HUD layout and then switching straight back - with the HUD kept because it is global.

I am very happy with this!
B
11
S
4
G
3
Posts: 70
Reputation: 3,066

Return to Construct 2 General

Who is online

Users browsing this forum: humanescape and 9 guests