I need some help for my project

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Toroblin

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 :slight_smile:

:bust_in_silhouette: Reply From: magicalogic

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.