Updated! How to move units in formation

Post your own tutorials, guides and demos.

Post » Tue Oct 20, 2009 1:25 am

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.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Tue Oct 20, 2009 8:33 am

Breaks down a bit when you make the units solid/change the RTS cell size, but still a pretty elegant solution.
B
55
S
12
G
8
Posts: 339
Reputation: 9,314

Post » Tue Oct 20, 2009 2:23 pm

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!
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Wed Oct 21, 2009 8:55 am

Good one! Seems to work well even with lots of units and obstacles.
B
5
S
2
G
4
Posts: 113
Reputation: 2,101

Post » Fri Oct 30, 2009 8:39 am

congrats, this gets asked a lot!
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests