Jump to content
  • Advertisement
Sign in to follow this  
SonicD007

Making an in game pause menu

This topic is 4589 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm trying to make a megaman rpg game, and I need to know how to make an ingame menu. The menu would popup when the enter key is pressed. I can do the enter key part, but i have no clue how to make a menu. The menu would most likely have Folder,NetNavi,SaveGame,Library,Messages, and probably other menu items. How would i make something like this?

Share this post


Link to post
Share on other sites
Advertisement
Just FYI: it would be helpful if you included the language you were programming in.

Basic jist of the menu is something like the following... First, you have an activation key, which is ENTER in your case. After successfully detecting that, you would need to have a flag, something to indicate whether or not the main game code should be processed (meaning, if that flag is on, we want to display the menu while suspending the animation in the rest of the game). Next, you... draw a menu, which can be done in a number of ways, but something basic would be to just draw a primitive rectangle somewhere and put text into it. Then, you'd have to some custom-drawn buttons as well, and to process those buttons (for save, load, etc.) you'd have to do some hit testing with mouse clicks (or if the interface is purely through the keyboard, check for the user pressing whatever keys and highlight the appropriate "button") and then handle those accordingly. Then of course, however you want the user to be able to exit the menu (by hitting ESCAPE, or whatever), you'd then set that flag from earlier to indicate that the game is in the "play game" mode, rather than the "menu mode".

If you want something more code-specific, like I said, you'll have to post the language you're workin' with.

Share this post


Link to post
Share on other sites
I'm coding in Dev-CPP compiler. c++ language and windows api. Thats about it. The person making the map is using mappy. cvs map file. Is that enough info on the language and stuff?

Share this post


Link to post
Share on other sites
Im still kinda a noob. I understand what I have to do, but making a rectangle Im unsure of how to do, and making menus i have absolutly no clue how to do.

Share this post


Link to post
Share on other sites
Im still kinda a noob. I understand what I have to do, but making a rectangle Im unsure of how to do, and making menus i have absolutly no clue how to do.

Share this post


Link to post
Share on other sites
If you're just getting started you might want to just use the standard Windows application menu (or MFC, if that floats your boat), and have the menu show all the time. Then later you can get fancy and make it auto-hide or whatever.

I guess that kind of assumes that you're running in windowed mode, so maybe that won't be perfect, but in the absence of other information that's what I'd do.

Geoff

Share this post


Link to post
Share on other sites
Quote:
Original post by SonicD007
Im still kinda a noob. I understand what I have to do, but making a rectangle Im unsure of how to do, and making menus i have absolutly no clue how to do.

Just draw a simple rectangle. If you're doing this Megaman deal, you must at least know how to draw images, and if you can do images, then you should know how to draw points and lines, and thus, draw rectangles.

But, if menus seems confusing, then I would suggest taking a step back. Before trying to complete such a game as a Megaman RPG, shoot for something simpler, like a Tetris clone. Then, using what you learn from that, build up to the Megaman game.

Share this post


Link to post
Share on other sites
I want to make a simple game, but I'm trying to help someone make this game. I know most of the basics. Windows API all the way all the basic stuff. c++ windows api.

Also, can't I make a rectangle using RECT ?

MFC is like file edit and stuff right? If it is, I know how to do those kind of menus already. Just need to make an ingame menu. Start menu if you've played games like zelda and megaman.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!