Jump to content

Simple Pause Menu


Recommended Posts

A very simple pause menu with options, exit, restart and continue buttons. Figured it might help someone learn simple gui or otherwise come in handy.


Uses the escape key to open this menu and freezes time. Sound remains.


The background is one of yughues textures.

https://opengameart.org/users/yughues?page=1


Download Game_Menu.zip (version 1):

https://drive.google.com/open?id=1tS3e0WtIBdryhshyi9Eie-qdzrJfYZhc


Follow the instructions in INSTALL.txt


Download gameMenu_v2.zip (version 2)

https://drive.google.com/open?id=1gwOsO_QZSjH9nM08urIdcafwlqJY188w

game_menu.jpg.27f804920749d0fe89d1004f20c9552c.jpg

version 1

game_menu2.jpg.c4890880865957516a5588ca5c40d74f.jpg

version 2

Edited by Jason Campbell
Link to post
Share on other sites

A bit critic to the design choices:


The "continue" button should always be the most obvious one in the most easily clickable area, since that is what people will click most times.

So in your example "continue" should be the top button, "restart mission" should be where "exit to main menu" is now and "exit to main menu" should be where "continue" is now.

Most people are used to the "continue" button being the big one above, so many people will instintively click the first button, which in your case will destroy all their progress and restart the mission.


Also the square texture as background for the menu does not look good, you don't need a background there, you could just leave the buttons floating on their own, or have a transparent menu background with glowing corners or so, but the way it is is not that ideal.


And lastly the clouds in the background are repeating too often, this looks very unnatural. I always use the clouds texture big enough that you cannot spot the repeating pattern that easiy, additionally you could layer multipler cloud layers on top over each other with different wind speeds and directions to further break the repeating patterns.

Link to post
Share on other sites

Thanks Duion, this is just a pause menu I made a long time ago for learning purposes. I'm not thinking anyone would use this in a finished game. I installed it now because I want to be able to pause the gameplay. I was just thinking people might find it useful to set up their own. The sky and clouds are by no means staying that way but thanks for the input. Honestly, since Ubergame is open source, I don't see why anyone wouldn't just use your UI as a starting point. Pretty polished.

Link to post
Share on other sites

How you do it is your personal design choice, I'm not suggesting that my way of doing it is better, but what I do is suggesting to look how others do it, so that whatever design you use, it will be similar to what people are used to so they instantly understand it, also it should be ergonomic and efficient to use.


Even though it is just a template, I would still suggest doing the layout correct, since most people tend to not change it or investigage further, they just assume it is correct that way.


A design choice I made for example as I saw it on some other games is that to not make separate GUIs but to use the same main menu for everything, so to pause the game you would just press esc and it will pause, while doing so it will blend in the main menu, where you can exit the game if you want to or exit the current game, which may require a modification of the main menu in case you were in a game, but this design is pretty efficient, as it allows you to do anything anywhere.

Link to post
Share on other sites

Nice.

I noticed that sounds still play though.

After a bit of digging around I found how to also pause all sounds.


When pause starts: (eg: onAwake())

//pause all the sounds using the sfxSource channels
   %sfx = AudioChannelMaster.getId();
   %sfx.pause();

 

And when pause ends: (eg: onSleep())

//reset the audio effect channel to play
   %sfx = AudioChannelMaster.getId();
 
   if(%sfx.isPlaying() == false)
      %sfx.play();
Link to post
Share on other sites
  • 2 weeks later...
  • 2 weeks later...

I have uploaded an alternate version 2 that uses some of Duion's advice but again this is just really for learning purposes.


@Steve, your sound fix works with everything except sound emitters. Perhaps if I had music playing, I could temporarily remove the ambient sound emitter, then replace it again?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...