title: Javascript ai jump platformer
body: <p>So i am trying to make a 2d platformer but i am having trouble with the ai. I can make the enemy follow me around perfectly when we start on the same platform but not when we start at the opposite side of the map like so.</p>
  
  <p><a href="http://imgur.com/t1Xw9lx" rel="nofollow">http://imgur.com/t1Xw9lx</a></p>
  
  <p>so i want the enemy to jump because there is no platform below. What would be the best way to let the ai know where and when to jump?</p>