Pathfinding With Hazards 2 (Platformer / Side Scrolling)

121
122
0
1

This uses the same code as my Top-Down Pathfinding example except that it has extra code to account for the Characters' jump height limit. As well I've added some Hazards that the Characters will try to avoid, though they will take a hazardous route if absolutely necessary. This clone has even more code that makes sure all old Waypoints are deleted before starting to spawn new ones, and I also added "ghost" Waypoints that stay in place to provide some kind of path to the Characters if the new Waypoints haven't reached them yet. This method has even more lag than before, so likely it won't be very useful unless someone finds a better way to cut down the performance cost.

Editor