An example showing how to get a group of units to move to a location and keep their formation.
Edit: Updated! New version has units stay in formation while moving.
Breaks down a bit when you make the units solid/change the RTS cell size, but still a pretty elegant solution.
Hmm. Not sure what to do about that. Thanks, tho.
Edit: Had an idea. Don't make them solid, make them avoid each other. Updated the .cap!
Good one! Seems to work well even with lots of units and obstacles.
Develop games in your browser. Powerful, performant & highly capable.
congrats, this gets asked a lot!