How to make enemies chase the player and attack


I am looking at this example: GDevelop 5

this kind of ai is good for me, as I want enemies to chase the player.

but can you suggest me what i need to do, so the enemies also attack the player ?

Thank you

If the enemy object is within a certain distince of the player, start the attack sequence.

1 Like

Thank you, I will try that.