Skip to main content
2 of 3
Clarified and proofread.
Anko
  • 13.5k
  • 10
  • 56
  • 82

How do I handle objects with a width and height in grid-based pathfinding?

I'm using the Jumper library for Love2D to do grid-based pathfinding, which worked fine until I wanted to make larger enemies (with larger collision boxes). How do i do that?

My initial idea was to make a new map for each entity that needed pathfinding I could make a new map, with all the objects scaled up in size, but that seems way to complicated.

Julian
  • 133
  • 5