Alright. So I have been scratching my head trying to figure some things out. The most problematic is an in-game menu. First, here is what I mean.
Player is playing in a rpg, and decides to enter the menu to view a characters stats. Other engines bake this in, but since Construct 2 is genre-agnostic, it (naturally) excludes this.
I figured I would try a few ideas.
At first, I tried to make text elements (dummy menu commands) that would link to other layouts. This... did not work at all. When going back to game, the original layout is restarted. So then, I tried saving the game state in "MenuPauseState" and reload this save when coming back. IT WORKED!!! Or so I thought. When performing another operation, and reloading the layout, it reverted back to the state. I could not find an easy way to clear it after reloading layout. (Not to mention, if a player say, assigned a stat point, it would revert to the initial saved data anyway).
Next, I tried to set timescale to 0, and then make individual elements visible without switching layouts. What a pain to go through every single layout, and set up a layer for every single "map" that has the elements positioned just so. Not to mention, sub menus... eek.
I have looked all over and tried a couple of things from the only two relevant tutorials. Global UI (which uses a global layer loaded after starting the game) was originally the most helpful. It seemed like the perfect solution. Except when I tried to use the .capx and make it so a text object would appear on Esc (from UI layout) instead of going back to main menu. To my woe, items (even if layer is set invisible in event sheets) are ALWAYS visible.
I tried the tried and true method of google and youtube... only to find most "Game Menu" or "GUI" results almost always refer to title screen menus... Great and all, but I have that figured out, and it doesn't really help.
I'm trying to learn more about Construct 2 (coming from a PHP background, so things are a little different as one may imagine). Right now, with the goal to learn the engine (rather than designing an actual game), I am trying to expand the Ghost Shooter (Beginner's Guide) tutorial project. So far, I have some things (respawn, bar HUD, Ammo count, score, XP) added. It just seems in-game menus are either not a hot topic, or so crazy simple (or complex) that no one really covers it in detail.
Any help with a good direction to go would be greatly appreciated. I still need to work on things like inventory (I plan on using the menu to equip/upgrade items) and I've seen a couple of tutorials about Dictionary, WebStorage, and XML (which, frankly, looks SO promising and familiar!).
Need pointers on how to create an in-game menu. I think the best way would be with global layers, to prevent other issues that I have had in other attempts.