Hello, So I’m trying to create a enemy that will move each time the player entity move in a tile base game. Not sure if AI is mandatory or I can manipulate the Entity movement when the player moves.
you wouldnt need AI as such but you would need something to determine where to move?
of course we need to consider other actions it might take in the future, attacking etc
you may have a global utility AI instead of a specific AI controller
Yeah I had movement set up for the player and the coordinate function was pretty tricky for me.
Your gonna need a nav mesh where the ai/anything controlled by the computer can move in, so dont forget that.
if you show us how youre trying to do it we can help more,
if its tile based you could use A* or something to find neighbour tiles, if its just grid based you could SnapVectorToGrid i think its called
As far as notifying the AI/ NPCs to move you could use an event dispatcher on player move action, there may be a more efficient way I’m not yet aware of but that could get the results your looking for