0 votes

Hi, im still very new in godot, i newly starting my top down shooter game project,
Can someone tell me how to make ai patroling/wandering inside some area, and when the ai find a enemy or enemy entering that area, the ai will attack and chase the enemy until the area limit, uhh... Idk what to do first, if someone know, please help me.. Thanks.

Its very similiarly to drones in battlevoid:harbinger ( sorry i dont have the pict ).

Sorry for my bad languange, thanks :)

Godot version 3.2
in Engine by (12 points)

1 Answer

0 votes

Place an area2d on the area the enemy is patrolling and when the player enters this area make the enemy chase them until they leave the area. Make the enemy go back to the area and continue patrolling.
Check out this tutorial to see how to chase the player by kidscancode.

by (1,053 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.