GameMaker: Studio Tutorial - Stamina System

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • In this video we learn how to implement a stamina system into your game in GameMaker!
    🡆Discord - / discord
    🡆Patreon - bit.ly/2HlRzhv
    🡆Twitter - bit.ly/2FtV0Q0
    🡆Other Tutorials - bit.ly/2DoDI5X
    🡆Other Dev Logs - bit.ly/2TR4wBz
    Make sure to leave a Like, Subscribe & Comment!

КОМЕНТАРІ • 24

  • @AdamBarkerThe
    @AdamBarkerThe 2 місяці тому

    Wow this is honestly fantastic, super clear and quick. Thanks so much for the video!

  • @magicalmagic6283
    @magicalmagic6283 3 місяці тому

    Simplesmente incrível!! Eu tava procurando um tutorial que fazia EXATAMENTE isso, to muito supreso que achei especificamente como eu queria. A única coisa que mudei foi o sistemade movimento (que eu já tinha) e o Draw GUI eu mudei pra Draw event pq não queria que ficasse em cima de todas as camadas da tela. Mas foi perfeito!! Muito obrigado pelo tutorial ❤

  • @donovansanon1714
    @donovansanon1714 6 років тому +6

    Love the simplicity of your codes. You explain everything and showing the long way before learning to create shortcuts. Keep it up man

    • @GMGuru
      @GMGuru  6 років тому +1

      Thanks! Means a lot :)

  • @catlord2395
    @catlord2395 11 місяців тому +1

    For some reason my sprite is incredibly small, and when the meter is at 25% is starts depleting backwards?? Everything else works as intended tough, thanks for the tutorial!

  • @mythology100
    @mythology100 6 років тому +1

    Always nice to see more GMS content out there.

    • @GMGuru
      @GMGuru  6 років тому +1

      Thank you I plan to continue making tutorials and other videos to do with GM:S so stay tuned :)

  • @malavidra5157
    @malavidra5157 6 років тому +3

    Now thats what Im talking about, keep it up bro, you deserve much more attention than you get : )

    • @GMGuru
      @GMGuru  6 років тому +2

      Thank's very much :)

  • @meganoob9281
    @meganoob9281 2 роки тому +1

    great work

  • @Fairlii
    @Fairlii 6 років тому +1

    Always nice to see informative videos

  • @KanavDev
    @KanavDev 5 років тому +2

    You're A God To New People

  • @Takusama
    @Takusama 5 років тому +1

    Very useful, clean code and impressive result. I like short but focused videos as this one. Well done man!

  • @thomasjordanbeats2320
    @thomasjordanbeats2320 3 роки тому +1

    my guy thank u so much!!

  • @hasielsarsby5558
    @hasielsarsby5558 5 місяців тому

    I got it working great, but one thing I am stuck on is how do you disable for example I am using key X to attack? I am not sure how to disable that keyboard letter when my stamina is 0.

  • @oleksiiliaskovskyi5381
    @oleksiiliaskovskyi5381 5 років тому +1

    Thank you dude!)) You helped me very much)))

    • @GMGuru
      @GMGuru  5 років тому +2

      No problem :) Thanks for the support!

  • @Thenesrookie
    @Thenesrookie 4 роки тому +3

    Awesome tutorial man, not sure if you'd know but can you make it so that you press a button and it takes off a chunk of stamina? Like for attacks or something?

    • @GMGuru
      @GMGuru  4 роки тому +5

      If you have a attack if statement you could embed it into that for example
      if(keyboard_check(ord("Attack key"))}{
      //Run attack code
      global.stamina -= 25;
      }
      or something similar to that. Since it's a global variable you can access it in anything without having to reference the object. So using "global.stamina +=/ -= / ==" works in any object / function

  • @nachos1844
    @nachos1844 4 роки тому +1

    can anyone help me?? I want to draw the GUI above the player'head, how can I do this?

    • @yeefuckinhaww9236
      @yeefuckinhaww9236 8 місяців тому

      I know I'm three years late but I'm trying to do the same thing except im just trying to make it below the player. Did you figure it out?

    • @ukrainianbimba199
      @ukrainianbimba199 8 місяців тому

      don’t know if you still need it, but you can update position of gui on step event setting it to player’s x and y coordinates)

    • @snoopadoo11
      @snoopadoo11 8 місяців тому

      @@ukrainianbimba199 since you seem to be active, i keep getting errors in this line of code: max(0,global.stamina/global.staminamax),1,0,c_white,1);
      do you know what the problem is?

  • @gametourist6834
    @gametourist6834 2 роки тому +1

    6:38