RTS Game Tutorial | Unity | Episode 7 - Dealing Damage + Health Bar

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • #unity #rts #gamedev
    In this tutorial series, we are going to learn how to create a real-time strategy (RTS) game in Unity. This tutorial will cover all the basic elements you can find in an RTS game, including unit combat & control, unit movement, resource gathering, base building, enemy AI, and more.
    Unit UI Health Bar:
    drive.google.c...
    RTS Series Playlist:
    • Unity 3D | Real Time S...
    💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾
    Between my full-time job and my family life,
    I try to find free time to create content for this channel.
    You can support me and help this channel keep growing:
    paypal.me/Mike...
    💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾💾
    💻 This Is My Development Setup (Affiliate): 💻
    ============
    Main Monitor:
    amzn.to/3M64qCJ
    Secondary Monitor:
    amzn.to/41Iu06A
    Graphics Card:
    amzn.to/3MpnXzd
    CPU:
    amzn.to/3I8nvCW
    RAM:
    amzn.to/42zqM6u
    Keyboard:
    amzn.to/3W5RFN4
    Mouse:
    amzn.to/3nTPcZs
    Headphones:
    amzn.to/3pz0By5
    Microphone:
    amzn.to/3OecJz3
    =============
    RTS Real Time Strategy
    Unity RTS Tutorial
    Unity 3D Tutorial
    Red Alert RTS Clone Unity
    Real-Time Game Tutorial
    RTS Unit Control
    RTS Resource Gathering
    Building System RTS

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

  • @travisdennis4228
    @travisdennis4228 2 หลายเดือนก่อน +2

    Great video, thank you for the tutorial. Two comments I have: 1 when an enemy is destroyed the 'Target to attack' will often get set to `missing` instead of `null`, which according to the docs should have the same behavior but in this case does not transition me out of attacking state. Another is I may have missed it in rewatch but when we set the player prefabs up we had a stopping distance for the unit. Yours is set to 0 which gives the expected behavior on chase, but our initial set up on stopping distance was larger than our attack range so it was confusing the AI. Hope that helps anyone following and cant figure out why the behavior is different.

    • @Mikes-Code
      @Mikes-Code  2 หลายเดือนก่อน

      Thanks. There are still some adjustments to be done.
      I just try to move on with the bigger mechanics of the RTS. When these will be done, we will come back to fix anything needed.

  • @CJBPROJECT
    @CJBPROJECT 4 หลายเดือนก่อน +2

    Can't wait for the next episode

  • @Justin-cx8lv
    @Justin-cx8lv 4 หลายเดือนก่อน

    Liked and commented on these well deserved videos! Truly, if you are reading these comments, you are bringing joy to us all. Thank you so very much! Hope all is well, "see you next time"!

  • @whiited298
    @whiited298 4 หลายเดือนก่อน +2

    Nice video, you learned me so much about Unity thanks 💪

  • @DP_1
    @DP_1 4 หลายเดือนก่อน +2

    finally a new video ! 😁

  • @pureluck8882
    @pureluck8882 4 หลายเดือนก่อน +2

    Nice episode as always.

  • @emre5437
    @emre5437 4 หลายเดือนก่อน +1

    Nice !

  • @viniciuscastro4925
    @viniciuscastro4925 4 หลายเดือนก่อน

    Nice Video!

  • @fishyfishfry1998
    @fishyfishfry1998 4 หลายเดือนก่อน

    I have a weird issue where if I issue a move command to a close by position while a player unit is attacking, it will disengage and move to the position. However, if I command them to move to a farther away position while they are attacking they will ignore the move command and continue attacking. It seems to have something to do with "isCommandedToMove" not setting when attempting to move them to a different tile on the terrain while they are attacking; and it will not set only when both of these conditions are met.

  • @redbarnacles6928
    @redbarnacles6928 2 หลายเดือนก่อน

    Somehow my game objects are not showing up now when running the game after adding the UnitEnemy and making the prefab (while trying to test as he did) but they are visible in my camera and scene before running the game.

    • @Mikes-Code
      @Mikes-Code  2 หลายเดือนก่อน

      Hey, sorry for the late reply. What game objects are you talking about, the Unit?

    • @redbarnacles6928
      @redbarnacles6928 2 หลายเดือนก่อน +1

      @@Mikes-Code Also sorry for the late reply. Yes the unit's are no longer visible when I run the game but they are in the camera view. It's okay though. I joined your youtube membership and am in your discord. I plan on starting the series over fresh and if I end up with the same result, I will msg in the discord. Thanks