How to make good enemy AI in Godot in 5 minutes

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

КОМЕНТАРІ • 34

  • @Thesuddenbutinevitable
    @Thesuddenbutinevitable 11 місяців тому +3

    This is the first time I’ve seen anything about enemy steering for smoother movement. THANK YOU SO MUCH

  • @eric81766
    @eric81766 Рік тому +7

    Well made tutorial. I think you made good choices on what to show/explain and how fast you moved through it.

  • @appguides
    @appguides Рік тому +1

    I've been looking on how to make an enemy AI. This is really useful. Thanks! 👍

  • @master_kehos
    @master_kehos Місяць тому

    So cool tutorial, many thanks for this it worked so well for me!

  • @joymagine
    @joymagine Рік тому

    cool stuff, love how simple it is

  • @erhansevimli8219
    @erhansevimli8219 6 місяців тому

    Sick tutorial just what i needed

  • @gokhan6260
    @gokhan6260 Рік тому +1

    Thank u I already had a similar enemy but I could not figure out how to flip h

  • @Simracingone
    @Simracingone 10 місяців тому +2

    ne fonctionne plus en version4 quel dommage

  • @saulnores3477
    @saulnores3477 Рік тому +4

    Good video. Although too fast explaind.

  • @alekhine129
    @alekhine129 11 місяців тому

    Did you go over how you made your player character anywhere?

  • @phuocthinhnguyen7282
    @phuocthinhnguyen7282 11 місяців тому

    can you make like friendly ai version and we give orderr to them to do stuff?

  • @DeadManDev
    @DeadManDev Рік тому +1

    what about godot 4 master ?

  • @-Solenya
    @-Solenya Рік тому

    Thank you! Very helpfull. How could i modify the maths in get_circle_position function so they only approach the character from the left, top and bottom side?

  • @Christopher-ty2gc
    @Christopher-ty2gc Рік тому +1

    hi there , great video. I there any chance you could make the same video but using godot3D? . I'm trying to convert your example project to 3D but im struggling ,thanks

    • @MarkWallbridge
      @MarkWallbridge 4 місяці тому

      This is exactly where I'm at. Did you get anywhere or find any resources please? :D

  • @a_a0911
    @a_a0911 Рік тому

    I need the player movment and atack tutorial

  • @tego2420
    @tego2420 4 місяці тому

    thank u pro for the code 😀😀

  • @niko887ify
    @niko887ify Рік тому

    How did you make the player?

  • @imorange2
    @imorange2 3 місяці тому

    good but please explain the code a bit more as it is very useful to understand what you are typing

  • @gokhan6260
    @gokhan6260 Рік тому

    Can u pls make a video about fall damage in 2d? I watched like 10 tutorials but I still don't get it.

  • @suuuur-xh2mr
    @suuuur-xh2mr Рік тому

    world ???

  • @alfredweiss944
    @alfredweiss944 Рік тому +1

    Hi! really great video. But it have a problem. When i try to run it I get the error Invalid get Index 'global_position' ( on base: 'Nil'). Does any one know a fix, or what the problem is?

    • @aj08coder
      @aj08coder  Рік тому

      Hi, where did you see this error? My best guess is you probably didn't reference the player which is why it's trying to get the global_position off of nothing. If you spawn the enemies like I did, you'll have to set the player var when you instance the enemy.

    • @Rafael-tt8cz
      @Rafael-tt8cz Рік тому

      @@aj08coder onready var player : KinematicBody2D = $"../Player" I put that on the player variable, and it works well

    • @alfredweiss944
      @alfredweiss944 Рік тому

      @@aj08coder You were right, i didn't reference the player right. It's fixed now. tysm!

  • @FexyFL
    @FexyFL Рік тому

    could you make a enemy ai but for platformer? pls

    • @jacobynoctis4825
      @jacobynoctis4825 Рік тому

      What type of ai do you want your 2d platform game?

  • @miguelsouto2091
    @miguelsouto2091 3 місяці тому

    Is this godot 3?

  • @QuanNguyen-cr7
    @QuanNguyen-cr7 8 місяців тому

    🎉

  • @BumpDev
    @BumpDev Рік тому

    When the enemy attacks he attacks for more than just one frame

  • @suuuur-xh2mr
    @suuuur-xh2mr Рік тому

    helt

  • @MrSevenEleven
    @MrSevenEleven Рік тому

    I wouldn't exactly call this AI "good."
    But i suppose that's a matter of opinion.

    • @EnigmaticGentleman
      @EnigmaticGentleman 8 місяців тому +3

      Its good for something that a beginner can code in 5 minutes that's for sure.

    • @MarkWallbridge
      @MarkWallbridge 4 місяці тому

      @@EnigmaticGentleman Well said :)