Enemy states

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Newby
:warning: Old Version Published before Godot 3 was released.

I want to know how to give my enemy states like idle,wander,attack. My enemy now just can walk back and forth and damages the player if they walk into its area2d but it pretty dull. My enemy’s code for walking is uses marker like in dolphin island, when their area2d touches it they turn but i make their movement very predictable. Can i get a example on how this is done.

We need more details. Can you describe your system more or post code?

DrPlamsa | 2017-12-07 20:18