Aggressive enemy AI?

O

Owen Buckley

Guest
Hello! New-ish coder here, looking for some help creating/fiding some mild-super aggressive enemy AI.
Im looking to have my enemy follow my player through obstacles (pits, jumps, ect)
Any help is appreciated.
 

Kyon

Member
Hello! New-ish coder here, looking for some help creating/fiding some mild-super aggressive enemy AI.
Im looking to have my enemy follow my player through obstacles (pits, jumps, ect)
Any help is appreciated.
Literally no idea what kind of game you're making. No info at all.
Anyway, sounds like you're looking for pathfinding. There are a few tutorials out there;
Although, especially if you're making a platformer (which sounds like it), this is quite hard to do as a "new-ish" coder. But maybe fun to dive in though.
 

johnwo

Member
It essentially boils down to: Modify a pathfinding algorithm (such as A*) such that nodes indicate floor, edges, jumps, drops, etc...
You could C&P code for this, but you'd likely struggle if you'd have to modify the code for any reason.
I'd say this is a pretty hard task for a beginner.

Here's an article on the subject.
 
Top