Player and Enemy Health (GameMaker Studio 2 Tutorial)

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

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

  • @CamelT
    @CamelT 11 месяцев назад +1

    Just discovered these tutorials, Kraig you are a LIFESAVER!

  • @noelbino1800
    @noelbino1800 Год назад +2

    thanks bro for everything but i got a problem with the init_health it is saying " number of arguments for function init_health expected 0 got 1" How do i fix this?

  • @shahinsirkissoon6546
    @shahinsirkissoon6546 3 года назад

    hey man I hope you keep doing videos, nice and easy, chilled learning space. thank you

  • @5-Volts
    @5-Volts 2 месяца назад

    bruh, ive been. trying to find out why the flip - flops my x, y arent working for my hand drawn (with line tool in draw gui). Turns out draw and draw GUI are completly different. TTTTTTTTHHHHHHHHAAAAAAAAANNNNNNNNMKKKKKKKKK you soooooooooo. much amn

  • @asddsadsad-b8b
    @asddsadsad-b8b 2 года назад +1

    I have a problem.... the hp only goes down once when the enemy and the player collide. the second i move away, the healthbar goes back to normal and everything is reset.... can you help me??

  • @djlongshanks1719
    @djlongshanks1719 3 года назад

    when i use draw_self(); it creates to images of my player. one of them has a healthbar above there head the other doesnt, how would i fix that

  • @solomonjaiyeola6847
    @solomonjaiyeola6847 3 года назад

    Please i need help.. my healthbar keeps appearing in front of my player and enemy instead of above.. it a platformer game

  • @usemycode3007
    @usemycode3007 3 года назад +1

    Am new to gms2 and would like to know what's the point to add 100 * (YourHP / MaxHP) and not putting YourHP only???
    If I take 100 x 100 that's 10,000 divided by 100 you get 100 back
    So why not just use YourHP that is also 100

    • @usemycode3007
      @usemycode3007 3 года назад

      @Mr Dad I did it with only PlayerHp cuz I use a global.Var = and it seems to work just fine.

    • @usemycode3007
      @usemycode3007 3 года назад

      @Mr Dad maybe idk I only have about 30 hours. But I didn't know a value could have percentage I thought it was just numbers

    • @usemycode3007
      @usemycode3007 3 года назад

      @Mr Dad no hours don't matter it depends how much you use it everyday if you stop for like 2 weeks then use it you might forget what you know.

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

      dude i cant even make my guy jump with gravity without flying into damn space

  • @gunzassasin743
    @gunzassasin743 3 года назад

    hi , why don't you make more video tutorials ?

  • @KungFuChowder
    @KungFuChowder 4 года назад

    Good Stuff! I was looking for some way to make my system work for taking damage. Had to make scripts a little different due to the changes in the new version but otherwise it should work.

  • @Goby210
    @Goby210 2 года назад

    Super helpful thanks

  • @dookcurruff9047
    @dookcurruff9047 3 года назад

    thanks kraigley

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

    i try the script and says: Variable .currenthp(100003, -2147483648) not set before reading it.
    What i do? 0-0