Skip to main content
1 of 4

Pathfindfind Problem

im currently working on a aoe 2d style rts game . Im using Pyglet , framework for Python I know that python is not at all the best programming language to create video games , still im fine with it and i know the limits .

Here's my problem :

Im currently using A* algorithm (brought by : 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 a A* path and go to the destination : here's a video of what it looks like https://www.youtube.com/watch?v=41KaYtgLhh4

Here's what i want : I want that the group of units stay solid , i want that the whole group stay united and find the path without separated units .