GameMaker: Studio Tutorial - Stamina System

Поделиться
HTML-код
  • Опубликовано: 17 дек 2024

Комментарии • 24

  • @AdamBarkerThe
    @AdamBarkerThe 24 дня назад

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

  • @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 :)

  • @magicalmagic6283
    @magicalmagic6283 Месяц назад

    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 ❤

  • @malavidra5157
    @malavidra5157 5 лет назад +3

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

    • @GMGuru
      @GMGuru  5 лет назад +2

      Thank's very much :)

  • @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 :)

  • @Fairlii
    @Fairlii 6 лет назад +1

    Always nice to see informative videos

  • @meganoob9281
    @meganoob9281 2 года назад +1

    great work

  • @KanavDev
    @KanavDev 4 года назад +2

    You're A God To New People

  • @catlord2395
    @catlord2395 9 месяцев назад +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!

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

  • @oleksiiliaskovskyi5381
    @oleksiiliaskovskyi5381 5 лет назад +1

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

    • @GMGuru
      @GMGuru  5 лет назад +2

      No problem :) Thanks for the support!

  • @Thenesrookie
    @Thenesrookie 3 года назад +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  3 года назад +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

  • @hasielsarsby5558
    @hasielsarsby5558 3 месяца назад

    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.

  • @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 7 месяцев назад

      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 6 месяцев назад

      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 6 месяцев назад

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