OBVIOUS Health Bar Damage Taken EFFECTS in Unity (Includes Simple Enemy AI - PATROL & SHOOTING)

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ธ.ค. 2024

ความคิดเห็น • 25

  • @colorfury6936
    @colorfury6936 3 ปีที่แล้ว

    It works great vid dude!

  • @thomas5435
    @thomas5435 ปีที่แล้ว

    The 20 second part at 19:00 helped me so much, thx man.

  • @elladitch9698
    @elladitch9698 5 ปีที่แล้ว +1

    It's totally worth to wait!! Amazing work!

    • @beaverjoe9171
      @beaverjoe9171  5 ปีที่แล้ว

      Thanks~ There is much more to come

  • @АлександрОрачев
    @АлександрОрачев 3 ปีที่แล้ว

    Как раз не знал как удалять партиклы после создания, а тут нашелся простой способ, спасибо)

  • @stefke1993carina
    @stefke1993carina 4 ปีที่แล้ว

    I was put of by the hard accent at first, but the amount of effort you put into visualizing the ideas and concepts is frigging commendable. Nice work man! Respect

  • @abdelazizetaib9305
    @abdelazizetaib9305 4 ปีที่แล้ว +1

    This Is Awesome Bruh U Helped me A Lot We Need More basic Videos And Thank U So Much ❤😍

    • @beaverjoe9171
      @beaverjoe9171  4 ปีที่แล้ว +1

      Thx for your inspiration

    • @abdelazizetaib9305
      @abdelazizetaib9305 4 ปีที่แล้ว +1

      @@beaverjoe9171 I'll subscribe with u from my other Acounts Thank U For helping Us❤

    • @beaverjoe9171
      @beaverjoe9171  4 ปีที่แล้ว +1

      Abdelaziz Etaib I will try to continue publish more in the next month😊 very appreciate for your likes

    • @abdelazizetaib9305
      @abdelazizetaib9305 4 ปีที่แล้ว

      @@beaverjoe9171 I Really Appreciate it Thanks Man ❤

  • @Stinger-rq4gy
    @Stinger-rq4gy 3 ปีที่แล้ว

    Excellent, love it

  • @submergedinaglassfilledofa9242
    @submergedinaglassfilledofa9242 5 ปีที่แล้ว +1

    great video... nothing to say.. except: thanks bro for that tutorial!

    • @beaverjoe9171
      @beaverjoe9171  5 ปีที่แล้ว

      Planet of shadows very appreciate bro. There is much more to come. 😊😊😊

  • @sairampidugu6161
    @sairampidugu6161 2 ปีที่แล้ว

    Thank you so much Sir ❤️

  • @Ordelos
    @Ordelos 3 ปีที่แล้ว

    super amazing stuff :)
    Is there a way to make a prefab out of the enemy which still contains the healthbar images?

  • @maoko3902
    @maoko3902 4 ปีที่แล้ว +1

    how to stop the game/delete the enemy when hp = 0?

  • @Ynoob215
    @Ynoob215 ปีที่แล้ว +1

    thank you i made it in the roblox studio !!!!

  • @Stinger-rq4gy
    @Stinger-rq4gy 3 ปีที่แล้ว

    Hi Beaver Joe,
    In my scene I got my FPS Character Controller (the player) and my Zombie following the FPS Character Controller with script, and I added a attack trigger so when the FPS Character Controller gets close the zombie attacks the FPS Character Controller at 4.0 Stopping Distance.
    So all I need to do is the health bar goes down when the zombie attacks the FPS Character Controller, does anyone know any tutorials that show the C# Visual Studio code or in Bolt Visual Scripting to make the health bar go down when the zombie attacks the FPS Character Controller? Or can anyone walk me through it on Unity 3D? I cannot find any TH-cam tutorials on a health bar going down when a enemy attacks the FPS Character Controller, in the tutorial they just talk about the health bar going down when the space bar is pressed, or the health bar changing color's as it goes down. Can you make this TH-cam tutorial for me, I am sure it will help lots of other people with making their video games? So do I need to make a script for the health bar, and the zombie attack only, and the FPS Character Controller ( the player) is not included in script of the health bar going down when the zombie attacks my player? So its just zombie, and health bar that is needed when you write a script for a health bar to go down?😥😥😥😥😥😥😥😓😓😓😓😓😓🤕🤕🤕🤕🤕

  • @PDF4711
    @PDF4711 5 ปีที่แล้ว +2

    Some good pointers in this, but the code did seem a bit like it was "done on the fly" - but again good content.

    • @beaverjoe9171
      @beaverjoe9171  5 ปีที่แล้ว +2

      Agree. I feel I did not explain so clear on Healthbar and Patrol on the last episode. While It's true that 50% of contents are repeated. I will make more features later~ >-

  • @Neekoolos
    @Neekoolos 5 ปีที่แล้ว +2

    This is super cool! I will try and do this~ Could you please make a tutorial on a 2d plat-former player dash skill?(similar to Hollow Knight) Last jam i tried so hard to make a dash but had to give up because I had to finish levels hehe. Great video!

    • @beaverjoe9171
      @beaverjoe9171  5 ปีที่แล้ว +1

      Nick Teacher and Neat Games I have watched the dash episode before but I will research it try to publish this month. I really want to realize as well!!! Thanks for comments bro!!

  • @TwoVera
    @TwoVera 4 ปีที่แล้ว

    Can you show how to make a healthbar like in league of legends? They have rectangles and each rectangle represent 100 hp. So a person with a lot of health will have many ticks.

  • @beaverjoe9171
    @beaverjoe9171  5 ปีที่แล้ว

    💫Hey there.
    ⭐️ If you don't want to write "Hp Damage Effect" inside UPDATE function, I can ☘️ change sth inside ▼HealthBar script ▼
    (Also, you can 🍄download the updated project: drive.google.com/file/d/1vp8sz_S2Rir-GUlqBLA8j43TKT7NeJ17/view?usp=sharing)
    ▼CODE▼:
    public void UpdateHp()
    {
    StartCoroutine(UpdateHpCo());
    }
    IEnumerator UpdateHpCo()
    {
    hpImage.fillAmount = hp / maxHp;
    while(hpEffectImage.fillAmount >= hpImage.fillAmount)
    {
    hpEffectImage.fillAmount -= hurtSpeed;
    yield return new WaitForSeconds(0.005f);
    Debug.Log("A");
    }
    if(hpEffectImage.fillAmount < hpImage.fillAmount)
    {
    hpEffectImage.fillAmount = hpImage.fillAmount;
    }
    }
    //🐿-=-=-=-=-=-=-=-=--=-=-=-=🐾
    You can call this function in▼ Weapon script▼ looks like:
    private void OnTriggerEnter2D(Collider2D other)
    {
    if(other.tag == "Enemy" && isDamage)//FIXME isDamage [Avoid The AXE stop on the ground but still takes damage to Enemy]
    {
    other.GetComponentInChildren().hp -= 20;
    //MARKER NEW NEW NEW
    other.GetComponentInChildren().UpdateHp();
    //MARKER NEW NEW NEW
    EventSystem.instance.CameraShakeEvent(0.4f);//MARKER OB PATTERN
    Instantiate(slashEffect, transform.position, Quaternion.identity);
    }
    }