How to Make a 3D Patroling Enemy in Godot with Pathfinding

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • A Place for Experiments DEMO: gamergamesyste...
    Itch.io: gamergamesyste...

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

  • @Haku_Hatake
    @Haku_Hatake 3 месяца назад +10

    Seeing a boolean var called you're f*cked, made my night lol

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

    This tutorial may be exactly what I need to save my stealth game project, although I’d be replacing the wander code with my patrol-path system. Thank you so much!!!!!

  • @RuddsReels
    @RuddsReels 6 месяцев назад +4

    This is really good. So much to consider. Keep making tutorials please!

  • @acedefective2220
    @acedefective2220 4 месяца назад +2

    this tutorial is a lifesaver

  • @SkullCrabz
    @SkullCrabz 6 месяцев назад +3

    Saw your post on reddit keep up the good work.

  • @RafathBinZafarAuvee
    @RafathBinZafarAuvee 3 месяца назад +1

    This channel will blow up some day. You should make course or playlist for godot

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

      Thanks! I don’t think I’m good enough to do a course, but I just made a playlist for my Godot tutorials, thanks for the advice!

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

      @@Punga046 sir, you'r more capable then the most of the godot channel.

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

    I can't wait to get my first level to a place where i can add enemies and try this out! Which version of Godot is this using please?

  • @ryepotato_editz
    @ryepotato_editz Месяц назад +1

    If you use an area 3d as the enemy's eyes then wouldn't it be able to see you through walls?

    • @Punga046
      @Punga046  Месяц назад +1

      @@ryepotato_editz There were no walls in my game, so it wasn’t an issue, but you can use raycasts instead.

  • @acedefective2220
    @acedefective2220 4 месяца назад +1

    aye stupid question actually, what's the easiest way to find the borders of my map for the randf_range in the RandomPos variable

    • @Punga046
      @Punga046  4 месяца назад

      I did it by placing the character at the borders and copying its coordinates.

    • @acedefective2220
      @acedefective2220 4 месяца назад

      @@Punga046 I see thank you so much

  • @marka.alvareznieves9213
    @marka.alvareznieves9213 26 дней назад

    where can I find the code file to analyze it better?

  • @synccyt_
    @synccyt_ 21 день назад

    If I have multiple enemies wandering it gets very taxing performance wise. Any advice to fix this?

    • @Punga046
      @Punga046  21 день назад +1

      I would probably use one manager script to handle all the enemies. So have a navigation agent for every enemy, but use only one script (preferably C#) to handle the logic.

    • @synccyt_
      @synccyt_ 20 дней назад

      @@Punga046 great thank you very much

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

    nice tutorial! no like genuinely!!!