title: Implement AI "chase" logic
body: <p>I have the following sample terrain:<a href="https://i.stack.imgur.com/tYeFb.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tYeFb.jpg" alt="Stick Figure Terrain" /></a></p>
  <p>I am new to HaxeFlixel, and trying to implement the AI chase logic. I want AI to keep track of the platforms, and jump up/down and chase/follow the Player (dynamic movements) and obeying the rules of physics, and make it realistic.</p>
  <p>The terrain is made up of a CSV file <a href="https://i.stack.imgur.com/w9x8L.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w9x8L.png" alt="CSV File" /></a> using the following image.<a href="https://i.stack.imgur.com/9YQyQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9YQyQ.png" alt="Terrain Image" /></a></p>
  <p>I am stuck on how to approach the AI algorithm. How can I keep track of the location of the platforms and instruct the AI to follow the Player while staying on the platforms, and jump up/jump off when needed.</p>
  <p>Please help!</p>