1 decade ago by Ash_Blue
I'm currently building a simple 2D platformer with a predator AI. I need the predator to pursue players when jumping onto a ledge. Read some good ideas here, but I'm a little rough on how to implement this with ImpactJS.
http://www.gamedev.net/topic/642907-2d-platformer-ai/
In order for the predator to jump and continue chasing, I need to pre-predict the jump curve and make sure its clear. From my research the best way to do this is drawing an imaginary curved line and verifying the predators width / height don't collide. Please note I only need this to work on a game with flat surfaces.
What is the best way to determine a safe jump path with ImpactJS?
http://www.gamedev.net/topic/642907-2d-platformer-ai/
In order for the predator to jump and continue chasing, I need to pre-predict the jump curve and make sure its clear. From my research the best way to do this is drawing an imaginary curved line and verifying the predators width / height don't collide. Please note I only need this to work on a game with flat surfaces.
What is the best way to determine a safe jump path with ImpactJS?