Skip to main content
4 of 4
You don't even need to to mention it in the text if it can be done in a tag!
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61

Maintaining unit formation while following path

I'm currently working on a 2D Age of Empires style RTS game.

Here's my problem:

I'm currently using the A* algorithm (via Path finding package) to move my units.

When you select a "group" of units and set a destination, all units inside of the battalion will follow an A* path and go to the destination. Here's a video of what it looks like.

I want that the group of units stays solid; I want that the whole group stays united and follows the path without the individual units separating.