Opening a menu

Hey, this is probably a pretty simple question, but I haven't yet been able to deduce how to work this from reading through the tutorials.

I'd like to be able to open a menu (a character select menu) while going through a level, which pauses the actions of NPCs ans floating platforms and everything, then close it and resume playing right where I was. I tried doing this with a separate canvass for the menu, but some of the test IG Maker games (like the action RPG) have a menu you can access anytime, and it doesn't appear to be a separate canvass.


I was also wondering, after that, how to have items in a menu affect the player "action programs". I have one player gadget that has sets of action programs depending on which character you're playing as. So far I've tested the first two characters by altering the "first action program" setting in th emergence settings tab, but I want to change the action program from a menu.

I'm pretty sure this is kinda simple stuff, but I'd really appreciate help if someone knows how I'd do this.

EDIT:

Alright! Figured it out!

In case anyone else has a similar question: a menu screen like this can work as part of a HUD. If you create a cursor and add any items you want to appear on the menu to the cursor group, you can set the cursor to make those items in its group display only when a certain button is pressed (see the pause screen tutorial, which does this with the word "pause").

I made two items using the character's graphics (one for each of the currently available characters) and added them to the cursor group so theyd only be on the screen when the start button was pressed. Then under "item-specific functions" you can make it so selecting one of these items (the character icons) changes a memory. So now we've got a menu that shows up when you press the start button, and it displays two characters, where selecting one or the other sets a memory (called "who are you") to a different value for each character.

But how does this make the hero gadget switch to the other character? I went to each character's action programs, and made it so if the "who are you" memory changed to the value which indicated a different character, the next action program would switch to the other character's standby program.

It seems to work pretty well. There isn't much functional difference between the characters quite yet, but this system seems like it'll facilitate further differences very nicely.
Sweet find! I am going to see if this will be applicable to Tartarus, my new game.

Original thread: https://forums.rpgmakerweb.com/threads/opening-a-menu.20964/