Make Video Games 2018 ►

In this video we learn how to create a pause menu in our game. If you have any questions then be sure to leave a comment or contact me on twitter; realtutsgml. If you learned something then be sure to leave a like, comment, and favorite.

I’m the founder of codingmadesimple.com that hosts high quality, fun to learn and straight to the point course material for game developers. I’d really appreciate it if you’d check out my content.

Twitter ►
Google+ ►
Patreon ►

Have fun learning!

Nguồn: https://shaarique.com/

Xem thêm bài viết khác: https://shaarique.com/game/

46 Comments

Raiyan Danial

June 29, 2020

tq….so much my game in running well with your tutorial…. thank god i have found the most easy way to code it…thnx once again

Reply

bonbeixx

June 29, 2020

sweet boy

Reply

Jhonny Stevenson

June 29, 2020

Multiple rooms?

Reply

wynywonhd

June 29, 2020

I want you to change the room and pause it to change the pause image
How do i do?

Reply

Jushtan

June 29, 2020

paused = !paused would save a few lines.

Reply

pupypup

June 29, 2020

THANKYOU! this is the pause menu i wanted!

Reply

Mark

June 29, 2020

what if I have multiple rooms, and they're levels? how do I make it go back to the room they were last on?

Reply

Jack Gadsby

June 29, 2020

What if there are moving features to the room, they will keep moving. You need to make a video that actually makes a pause menu not a roomswitch

Reply

Mystery Cup of Joe

June 29, 2020

Thank-you.

Reply

sirtrevis42

June 29, 2020

The room_goto(#) command works for one room, but what if I have multiple rooms and i want to return to which ever one the player is in currently when the game is paused? I assume at this point having a pause room rather than a controller that just draws a menu would not work as well?

Reply

K12 Gamer

June 29, 2020

Why the hell don't they just include a simple drag and drop pause function/menu with Game maker studio?

In Gamemaker 8…You could simply press (F1) to pause and bring up an INfo screen.

Reply

NizarPlayz

June 29, 2020

YAY! THIS wasen't helpful cause im getting error and errorS!!!!!!!!!!!!!!! help

Reply

PronomicalArtist

June 29, 2020

i didn't want a pause menu i want a pause button in the game, when you click it everything freezes..

Reply

Captain America

June 29, 2020

What to do if I have more than 1 room?

Reply

Carpetwurm

June 29, 2020

My game is just a box moving around..

Reply

Ghostie432

June 29, 2020

The reason this tutorial isn't very useful is because say you have multiple rooms, when you click back on the pause menu it will just return to the room you set it to return to. what you want is for it to return to the room that you are in when you paused it. Can someone PLEASE PLEASE PLEASE help me with this?! P.S sorry if this comment came out to be rude 😛

Reply

Strobelight Productions

June 29, 2020

"If your game is just a box moving around, I'm sorry to hear that…"
That's exactly what my game is. Download here: squarophobia_video_game.rar | strobeltproduction Password to the RAR file is password (that's not a typo)

Reply

TunnelMan'sAfro

June 29, 2020

I have a randomly generated game so this does not work out. The the level stays the same unless I restart. Could you make an updated tutorial where it just freezes the game please?  

Reply

Lucky

June 29, 2020

Thanks man, works perfectly. 😀

Reply

Miguel

June 29, 2020

That isn't a pause.

Reply

H3XED

June 29, 2020

Would this be the solution to making a drag and drop menu for my game where he can select his weapon element?

Reply

Просто Канал

June 29, 2020

am russian я Россиянен

Reply

James Korvenius

June 29, 2020

Please make more tutorials for enemys.

Reply

Gibby2143

June 29, 2020

0:25 OMG! i loughed so fucking hard i cant even believe i dont know why but thats one of the most hilarious things i ever heard every time i thing of that i lol so and its pretty hard to explane SO DAMN YOU REALTUTS!!!

Reply

colnusca

June 29, 2020

2:13 easier way to do that:
paused = !paused

Reply

Midnight Sparkle

June 29, 2020

i found an issue with that what if we have multiple rooms? becasue i found out that if i pause say on level 2 and un pause it would go to level 1 how do i fix that?

Reply

Clayton Brown II

June 29, 2020

I have a problem with whenever I have moving text in a textbox. The position or origin of the text resets itself for some reason. How do I fix that?

Reply

YOS127

June 29, 2020

I literally jumped out of my chair at the end! That music is WAY too loud! ├¥¼┐√

Reply

Conor McKernan

June 29, 2020

When i am doing different codes, I have found that it occasionally says assignment operator expected, and i says that the error is where the { or } key is, can anyway tell me why this is? And what i have done wrong, because I have been following RealTuts' code.

Reply

Sammy

June 29, 2020

can you make a tut vid of how to make a pause menu that can display your player stats? or skill to wich you could add skill points for your player??

Reply

RealTutsGML

June 29, 2020

That seems a bit complex just for that effect. It can be done much easier but that's one of the perks of programming, the same task can be done thousands of different ways! I love it!

Reply

Regen

June 29, 2020

What about a way to pause the game within the same room?

Reply

Mason Dydyk - Compeau

June 29, 2020

Do you know the code for persistance? Im trying to make a quit to menu function but my character is persistant, so when i quit to menu, my character is still on the menu screen

Reply

SynforgeGames

June 29, 2020

Nice tutorial I didn't know about this technique before. This was the technique I ended up using in the fighting game, it was much better than the one I would have used instead.

Reply

Kasper S.

June 29, 2020

But what if you have enemies following you? How do you freeze them?

Reply

manman1235

June 29, 2020

that shouldn't be a problem since the pause screen's a different room altogether.

Reply

manman1235

June 29, 2020

You'd still have to change the code to make it go to the previous room.

Reply

FurBohen

June 29, 2020

Make the controller persistent.

Reply

Reecer9714

June 29, 2020

What if your game has multiple rooms?

Reply

WTFZOMG

June 29, 2020

the dubstep at the end blew up my headphones.

Reply

Яни Вичев

June 29, 2020

nvm

Reply

Яни Вичев

June 29, 2020

How do you do buttons?

Reply

Arūnas Mikalauskas

June 29, 2020

Nice tut, thanks. Btw, how to temporary mute all sounds while game paused?

Reply

bloodpondstudios

June 29, 2020

How do you do buttons?

Reply

Jimsy Boma

June 29, 2020

dude i need to know how to pause with buttons and a highscore and when you loose the game it goes back to pause menu please someone help me with those 3 things pls.

Reply

xlord tk

June 29, 2020

Ok cool, also for reference I never disagreed with your tut, but what I did say was that I wasn't sure :). The reason I stated this was because when changing back everything was reset, so it kinda gave that impression. Also a request on how to handle a surface with multiple view? Thanks Bro, and sorry if I lead you to believe that I was disagreeing.

Reply

Leave a Reply