🔴Game Maker Studio 2 | Basics - Pause (all instances/objects)

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • This video tutorial shows you how to make an easy pause in gamemaker studio by deactivating instance layers. No magic here.
    ▶ Gamemaker Studio: www.yoyogames....
    ▶ Trial limitations: help.yoyogames...
    🎮 My free game Clunky souls:
    1up-indie2.itc...
    💓 My assets:
    Get some assets at itch.io 1up-indie2.itc...
    👑 Support me and get fresh game art and game maker projects every month:
    / 1upindie
    Follow me on:
    📸 Instangram: / 1upindie
    🐦 Twitter: / 1upindie
    💬 Discord: / discord
    📜 Udemy: www.udemy.com/... (See youtube about page for max discount)

Komentáře • 30

  • @Bladebreak3r
    @Bladebreak3r Před 3 lety +4

    Hey man, unrelated but would just like to say that I love the pixel art in your game :)

    • @1upIndie
      @1upIndie  Před 3 lety

      Thanks a lot, but which game are you refering to?

    • @Bladebreak3r
      @Bladebreak3r Před 3 lety

      @@1upIndie Clunky Souls

    • @1upIndie
      @1upIndie  Před 3 lety

      @@Bladebreak3r Oh you played it then, thanks!

  • @mythology100
    @mythology100 Před 5 lety +5

    Nice

    • @1upIndie
      @1upIndie  Před 5 lety +1

      Thanks for always being one of the first guys to see and comment my videos!

  • @krystofkopac3488
    @krystofkopac3488 Před měsícem +1

    im new to programming but what should i do with the object o_Camera? bcs you have it in the Create Event with object o_Tester yk

    • @1upIndie
      @1upIndie  Před měsícem

      Well, the o_camera object is to track and move the "cut out part" (called view) of the game where you target is (player or what you want to focus). This is not inbuild into Gamemaker and my own camera system (that you can download and use for free). If you have trouble or issues with that, you can use the the inbuild camera tracking inside the room (on the left side under "viewports and cameras" and enable view0 (your default camera) and select the target you want to follow and the values inside there). OR you can check out my own camera videos to get a grip on that. Not the easiest material for starters but handable and a must to know sadly for GameMaker.

  • @gustaafmilzink
    @gustaafmilzink Před 5 lety +4

    I was just wondering about this. Will you be doing a more advanced one? For example a method where the sprites remain visible on sceen?
    Great video once again. :)

    • @1upIndie
      @1upIndie  Před 5 lety +1

      Thanks. Sure, I put it on my to do list.
      Not totally sure though how to do this, I guess something with a surface.

    • @NinjarioPicmin
      @NinjarioPicmin Před 5 lety +2

      i myself always implemented pauses with having a global pause variable and all of the code in the step events etc. in a giant if statement that only executes when the game is not paused (you need to be careful of other things like alarm events too tho).
      what would also work is to save the whole screen to a surface when you press pause and display that while the game is paused. you can then also add effects like a blur on that paused image

    • @1upIndie
      @1upIndie  Před 5 lety

      @@NinjarioPicmin Interesting , can you make a video on that? :D and send me a link to it?

    • @NinjarioPicmin
      @NinjarioPicmin Před 5 lety

      @@1upIndie well i have no experience in making any videos at all, i'll write it down if i ever make videos i know that i can do it but i can't promise anything (especially any time soon)

    • @1upIndie
      @1upIndie  Před 5 lety +1

      @@NinjarioPicmin Hey, no pressure. It looked like you had a good idea, but either way I will make a video on that topic. But when you do a video too, well the community wins!

  • @Icefox1986
    @Icefox1986 Před rokem +2

    Hey Mate :)
    would like to use this to pause my space shooter game but i want to have the pause menu as a shop so the player can use there coins to buy eg missles or 2x laser etc can this be done easy? do you have a TUT on it maybe lol? or your wisdom would be great to thanks again :)

    • @1upIndie
      @1upIndie  Před rokem +1

      Well, what you need is a mini menue system or buttons that allow you an interaction. So something like that: czcams.com/video/ctNB1TYaWD4/video.html
      Was that helpful?

    • @Icefox1986
      @Icefox1986 Před rokem +1

      @@1upIndie thanks mate ill watch it tonight when i have more brain power lol so fun learning these things

  • @cjtodd6244
    @cjtodd6244 Před 3 lety +2

    When I pause i get the game paused text but then nothing else. Everything is still animated, I can still move my character around. Not sure what I did wrong, but something tells me it has to do with the 2.3 update.
    Even weirder actually I found that it does deactivate some instances in the layer, but not all of them, even though they are on the same layer. Have no idea what is going on now lol

    • @1upIndie
      @1upIndie  Před 3 lety +1

      Eh, I see a good story here. But no solution, but... good story :D

    • @cjtodd6244
      @cjtodd6244 Před 3 lety

      So I think somehow it was infinitely looping. I added the code "keyboard_clear(vk_space) [I was using vk_space released instead of the mouse click] after the game paused so it wouldn't loop and it seemed to work.

    • @1upIndie
      @1upIndie  Před 3 lety +1

      @@cjtodd6244 Well, all video games/programm have an infinite loop until released/terminated ( java, godot, unity I guess -> main () ).
      So this is how GameMaker works: you have the step events(s) and the draw (events) that loop all the time, so you can update/change/draw stuff on the screen. By using instance_deactivate -> in your case all, you simply block the currently used instances to work through their step/draw events. So this is techically not a pause but blocking/disabling but it is being used to save resources or create a "fake" pause for the user/player of the game. Hope that clears up things. .... Was that helpful?

    • @cjtodd6244
      @cjtodd6244 Před 3 lety +1

      @@1upIndie I also figured out why some things were disappearing during the pause and others weren't. apparently when I use the depth code "y = -y" it stays visible? I checked the items that weren't disappearing didn't have depth code. So I made it to where they didn't have any depth code whilst the game was paused.
      and yes that was helpful although I pretty much just figured it out myself. the fake pause info is helpful though to know

    • @1upIndie
      @1upIndie  Před 3 lety +1

      @@cjtodd6244 Hm, great you figured this out by yourself.

  • @JoaoPereira-bt6vx
    @JoaoPereira-bt6vx Před 4 lety +1

    Hey!! how we onpe the game download on game maker studio 2?? Its a project and i need all the objects,sprites,events can you email me that please

    • @1upIndie
      @1upIndie  Před 4 lety

      Not sure I can follow you. What exactly do you need? The engine gamemaker studio? Then I have a link in the description box.
      Do you need projects for gamemaker studio? Then I only have a selected few available on my patreon ( some free for everybody some exclusive to patreons).
      If you need engines, sprites go to opengameart or itch.io. There you will find tons of stuff.

  • @sansundertale7988
    @sansundertale7988 Před 4 lety +1

    your commentary is very boring and your introduction is getting annoying after some time. just some feedback mate

    • @1upIndie
      @1upIndie  Před 4 lety +1

      Yep, this one is especially boring, even to me :D. Ye, I try to make it pop a little more. Concerning the intro I was thinking about making it slimer, but I have to repeat core issues -> who am I, what do I do, subscribe and share. I tested it without the intro but then people will not subscribe (and that sucks for me then). So yeah... not a fan of that but it is the only way that works.

    • @sansundertale7988
      @sansundertale7988 Před 4 lety

      @@1upIndie Maybe you could shorten it or say it faster. On the positive side, I think your subjects are interesting and your explanations are pretty good too.

    • @lilpumpupthejam9302
      @lilpumpupthejam9302 Před rokem

      @@sansundertale7988 gross