1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

Aggressive enemy AI?

Discussion in 'Programming' started by Owen Buckley, Feb 14, 2020 at 1:21 AM.

  1. Owen Buckley

    Owen Buckley Member

    Jan 27, 2020
    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.
  2. Kyon

    Kyon Member

    Jun 27, 2016
    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.
  3. johnwo

    johnwo Member

    Jun 20, 2016
    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.

Share This Page