Game Maker Tutorial - Pause Menu

Поділитися
Вставка
  • Опубліковано 6 жов 2024

КОМЕНТАРІ • 93

  • @RealTutsGML
    @RealTutsGML  11 років тому

    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!

  • @WTFZOMG
    @WTFZOMG 11 років тому

    the dubstep at the end blew up my headphones.

  • @SynforgeGames
    @SynforgeGames 11 років тому

    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.

  • @raiyandanial5211
    @raiyandanial5211 7 років тому

    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

  • @Yipper64
    @Yipper64 8 років тому

    THANKYOU! this is the pause menu i wanted!

  • @Carpetwurm
    @Carpetwurm 10 років тому +10

    My game is just a box moving around..

  • @YOS127
    @YOS127 11 років тому +5

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

  • @SynforgeGames
    @SynforgeGames 11 років тому

    I never knew you could make roooms persistant, that's pretty cool
    btw do you think you could make the music at the end a little softer? It was quite a shock at the end of the video lol

  • @QpangGamepl4ys
    @QpangGamepl4ys 11 років тому

    Really thank you for this awesome tut.

  • @JustFredrik
    @JustFredrik 11 років тому

    I do not think Real will stream anything more of the development of PixleBit.
    We have pretty much finished the game. But I think he might want to make more stages if enough people ask for it.

  • @xnahualx
    @xnahualx 11 років тому

    Suggestion for a tutorial!
    How about you teach us how to make a animating background!
    (not where the clouds move from side to side but instead how to make different things move/appear and disappear etc)

  • @lukymason
    @lukymason 10 років тому

    Thanks man, works perfectly. :D

  • @xlordtk
    @xlordtk 11 років тому

    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.

  • @Mark-rb3bg
    @Mark-rb3bg 8 років тому +2

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

    • @liatfeller
      @liatfeller 8 років тому +1

      hey did you figure this out? Im making a multi-level/room game and want to do a pause menu.

    • @Soturnox1
      @Soturnox1 8 років тому +1

      If your game have multiple rooms, then u can make the turn on/off all the instances:
      Create event:
      pause = 0;
      Key press event -> others -> escape:
      if (!pause)
      {
      pause =1;
      instance_deactivate_all(true); //will deactivate all except himself
      }
      else
      {
      pause =0;
      instance_activate_all();
      }
      As a simple version of pause function, you can set some draw events
      Draw event:
      if (pause)
      {
      draw_set_color(c_black);
      draw_rectangle(0,0,room_width,room_height,0);
      draw_set_halign(fa_center);
      draw_set_font(fnt_menu);
      draw_set_color(c_white);
      draw_text(room_width/2,room_height/2,"Game Paused");
      draw_set_color(c_black);
      }
      Set your Obj_pause as persistent and drag into your first room and this should works :)

    • @Mark-rb3bg
      @Mark-rb3bg 8 років тому

      Diogo Dourado
      thank you

  • @RealTutsGML
    @RealTutsGML  11 років тому

    I may have to make another tutorial for that, I did not realize that problem when I uploaded the video. Sorry.

  •  11 років тому

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

  • @sermmy
    @sermmy 11 років тому

    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??

  • @RealTutsGML
    @RealTutsGML  11 років тому

    What? all moving parts in a room stop updating once the room is switched. Even if that wasn't the case then when you switch the room to the pause menu you can make the room speed 0.

  • @ghostie4322
    @ghostie4322 10 років тому +2

    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 :P

    • @jtrev23Music
      @jtrev23Music 10 років тому

      Hey, what you can do is on (key) create obj(whatever you named it) in the create even of the object use script to say (notme=true instance_deactivate_all(notme)) then in the object's destroy event use script (instance_activate_all). This way also helps if you want a menu screen.
      Now can someone help me find a simple way of pausing all but one objects without deactivating (because deactivating removes things)

    • @jtrev23Music
      @jtrev23Music 10 років тому

      I understand that, let me explain. I want a message to appear when something happens bit it doesn't take up the full screen, nor do I want it to. While this message is activate I want everything else to be frozen, then reume when it's gone. Please don't tell me to use the message button, I don't like it and it throws off the flow of my game.

  • @kylenetwork
    @kylenetwork 11 років тому

    Hey real, do you know when you're next livestream on Pixelbit will be?

  • @smkanim2009
    @smkanim2009 11 років тому

    Maybe make a variable called 'RoomCur' to check the current room?

  • @Gibby2143
    @Gibby2143 10 років тому

    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!!!

  • @AnimePFP
    @AnimePFP 11 років тому +1

    Please make a button tutorial

  • @RealTutsGML
    @RealTutsGML  11 років тому

    Haha yes, I noticed when the video went up that it is quite loud, sorry about that.

  • @KilotheGamer
    @KilotheGamer 11 років тому

    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

  • @oxey19
    @oxey19 11 років тому

    Can you Do a tutorial on making a top down sword fighting game?

  • @jameskorvenius7467
    @jameskorvenius7467 10 років тому

    Please make more tutorials for enemys.

  • @airboykiller101
    @airboykiller101 11 років тому

    Hey real, i went ahead and made buttons like reset room and exit game on my pause menu but they don't work. They don't highlight when my cursors over them and they aren't clickable for some reason (they are set up to do so). Any idea?

  • @xlordtk
    @xlordtk 11 років тому

    I am not sure about this pause tutorial, what if you had some kind of Enemie's AI or some thing like that, I am guessing that the enemy will continue to move around correct? Even so, nice.... also I think you can use room_goto_previous to get the previous/current room.

  • @airboykiller101
    @airboykiller101 11 років тому

    ok, i got the exit button to work but not the reset button, my reset button is set to restart the "current room(pause menuroom)" and not the room where my game is being played. enough info? :)

  • @AnimePFP
    @AnimePFP 11 років тому +1

    How do you do buttons?

  • @DuDeMBR
    @DuDeMBR 11 років тому

    Save the current room as a variable before you change it to the pause room and then go back by using room_goto(variablename)

  • @mysterycupofjoe2670
    @mysterycupofjoe2670 9 років тому

    Thank-you.

  • @conormckernan7018
    @conormckernan7018 11 років тому

    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.

  • @maffiakevin
    @maffiakevin 11 років тому

    how do you make it if you have more rooms then the pause menu have to see what is the room where you came from. How can i make that

  • @FireWareGames
    @FireWareGames 11 років тому

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

  • @razorhawk1357
    @razorhawk1357 11 років тому

    Thnx dude! That per

  • @DoingShitTheProWay
    @DoingShitTheProWay 11 років тому

    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.

  • @tunnelmansafro
    @tunnelmansafro 10 років тому

    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?

  • @Reecer9714
    @Reecer9714 11 років тому +1

    What if your game has multiple rooms?

  • @MrKassieboy
    @MrKassieboy 11 років тому

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

  • @NickJamNG
    @NickJamNG 11 років тому

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

  • @VividDreamer1991
    @VividDreamer1991 11 років тому

    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?

  • @NickJamNG
    @NickJamNG 11 років тому

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

  • @smkanim2009
    @smkanim2009 11 років тому

    I love you 'subs'

  • @wynywonhd1545
    @wynywonhd1545 7 років тому

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

  • @battlefronter2
    @battlefronter2 11 років тому

    LOL! my problem with a pause menu was that i forgot that you could make the room presistent

  • @colnusca
    @colnusca 11 років тому +3

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

    • @AdventuresOfWaffle
      @AdventuresOfWaffle 10 років тому +1

      actually thats a little early. where you want to be is 2:39, or you could copy paste:
      if (keyboard_check_pressed(vk_enter)){
      if (paused == true){
      paused = false;
      room_goto(pausemenu);
      }else if (!paused){
      paused = true;
      room_goto(room);
      }
      }

  • @narkocat
    @narkocat 11 років тому

    I suggest using particles.

  • @mikiito_g
    @mikiito_g 10 років тому +3

    That isn't a pause.

  • @PronomicalArtist
    @PronomicalArtist 10 років тому +1

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

  • @GamingGads
    @GamingGads 8 років тому +1

    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

  • @rexfurry
    @rexfurry 11 років тому

    Key Press "Space" Event -> Code Block -> show_message("paused") -> Simple as that!
    lol jk ^)^

  • @Strobeltproductions
    @Strobeltproductions 10 років тому

    "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)

  • @sirtrevis42
    @sirtrevis42 9 років тому

    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?

    • @FLDude64
      @FLDude64 9 років тому

      sirtrevis42 you can try to make a variable of which room the player is

  • @h3xed355
    @h3xed355 10 років тому

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

    • @h3xed355
      @h3xed355 10 років тому

      Ok I made this pause screen as my Drag and Drop menu but I don't know how to go to the room I was in BEFORE I go to this room . Know what I mean?

  • @RealTutsGML
    @RealTutsGML  11 років тому

    Well, give me more info

  • @captainamerica3496
    @captainamerica3496 10 років тому

    What to do if I have more than 1 room?

    • @fisheatsyourhead
      @fisheatsyourhead 10 років тому

      I would think you can recreate the object and copy the code but change the room that it sends you back to and put that in your other room.

  • @cameron1557
    @cameron1557 11 років тому

    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?

    • @SpikiM2
      @SpikiM2 10 років тому

      make more pause menus

    • @cameron1557
      @cameron1557 10 років тому

      oh gosh O-o"

    • @AdventuresOfWaffle
      @AdventuresOfWaffle 10 років тому

      Midnight Sparkle a lot of the time i have an issue that i cant fix and it turns out the answer was way simple like this. i feel really smart in a dumb way lol

    • @cameron1557
      @cameron1557 10 років тому

      Pfft yeah i know that feeling all the time xD thing is i dont understand Java code (or any code in fact) s i dont know where to put anything and yeah i can use the pre made blocks but sadly its based after cactus so i cant use it for what i wanted to

    • @AdventuresOfWaffle
      @AdventuresOfWaffle 10 років тому

      well of course since we are commenting on a gamemaker video i really recommend this Drag and drop to GML converter that i use freaking a butt ton of the time and helps me understand a lot. heres a link gmc.yoyogames.com/index.php?showtopic=423825

  • @RealTutsGML
    @RealTutsGML  11 років тому

    Haha yes that is a method of doing it :P

  • @TechBoxNorth
    @TechBoxNorth 11 років тому

    there you go.. 20 likes :)

  • @NizarPlayz
    @NizarPlayz 9 років тому

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

  • @FurBohen
    @FurBohen 11 років тому

    Make the controller persistent.

  • @Lucvandeven272
    @Lucvandeven272 11 років тому

    @maffiaKevin
    Well you can't.
    thats it.
    Nothing more
    Nothing less.

  • @bonbeixx
    @bonbeixx 7 років тому

    sweet boy

  • @PonasSausainis
    @PonasSausainis 11 років тому

    i write like this paused = !paused

  • @JustChannel13
    @JustChannel13 10 років тому

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

  • @ЯниВичев
    @ЯниВичев 11 років тому

    nvm

  • @crazyguy360o
    @crazyguy360o 11 років тому

    26(;

  • @ЯниВичев
    @ЯниВичев 11 років тому

    How do you do buttons?