How to code Coilhead from Lethal Company - Unity Tutorial

Поділитися
Вставка
  • Опубліковано 11 вер 2024

КОМЕНТАРІ • 19

  • @DaRealShadez
    @DaRealShadez 21 день тому +2

    im your 40th subscriber :D

    • @spikely.
      @spikely.  21 день тому

      Thanks so much! Slowly but surely 🥲

  • @usercontent2112
    @usercontent2112 17 днів тому +1

    Wow awesome tutorial! Thanks yt recommendation

    • @spikely.
      @spikely.  17 днів тому

      Glad you liked it!

  • @GameBoyAlex
    @GameBoyAlex 22 дні тому +1

    Underrated

    • @spikely.
      @spikely.  22 дні тому

      @@GameBoyAlex Thanks, Alex!

  • @DumDev420
    @DumDev420 18 днів тому +1

    i downloaded the ai pathfinding thing but cant find the scripts i need such as the pathfinder
    Edit: I also have and error for "Bounds" does not get a definition of getcorners or something

    • @spikely.
      @spikely.  18 днів тому

      I think the component is actually called Pathfinding not Pathfinder. I may have misspoke.
      The error for Bounds not having getCorners is because you have to create a new script called BoundsExtensions. See the timestamp at 8:36
      Also you can just copy the script from my GitHub: github.com/spikelyDev/coilhead-tutorial/blob/main/Assets/Scripts/Extensions/BoundsExtensions.cs

    • @DumDev420
      @DumDev420 18 днів тому

      @@spikely. Thanks you this fixed everything

    • @DumDev420
      @DumDev420 17 днів тому

      @@spikely. Could you also make another part to this with patrolling, killing the player, sound and/or animation? i recently started coding and cant find any tutorials for this and i really want to make a game like lethal company

    • @spikely.
      @spikely.  17 днів тому

      Yep I can definitely do a part two for you!

    • @DumDev420
      @DumDev420 17 днів тому

      @@spikely. thank you so much

  • @user-bv6nr9do1b
    @user-bv6nr9do1b 19 днів тому +1

    Can you code the bracken please

    • @spikely.
      @spikely.  19 днів тому

      Sure! The Bracken is very similar to the Coilhead code-wise. The main difference is in the Update function and how the Bracken reacts when players are looking and not looking at him.
      If a player is looking at the Bracken for too long , set that player as the target and attack him.
      If a player looks at him for just the right amount of time, the Bracken should get shy and quickly scurry away.
      Essentially you want to create behavior for each of the Bracken’s states (ex. Wandering, aggressive, scared) and switch between those states depending on how the players react to him as explained above.
      Hopefully this is enough information to lead you in the right direction. If not then I can do a quick video on it.
      And thanks for watching and commenting!

    • @user-bv6nr9do1b
      @user-bv6nr9do1b 19 днів тому +1

      @@spikely. You just got a new subscriber! You explained it very well but I'll be happy if you make a video for it if you don't mind. because I'm a newbie programer and most of the time my scripts have several warnings or they're just too messed up, when I'm not following any tutorials

    • @spikely.
      @spikely.  19 днів тому

      Thanks so much! I will definitely make a video on it soon then.
      And don’t worry about being a newbie. Everybody starts somewhere - no shame in watching tutorials to figure out how things are done! I still look up things all the time!

    • @spikely.
      @spikely.  4 дні тому

      Part one for coding the Bracken just uploaded!
      ua-cam.com/video/68hqUd8Ybvo/v-deo.html