How Would I Make This Type Of Game Mechanic?

Hi,

I am trying to make a RTS game where you lead a lot of small “minions” to certain objectives and I would like the mechanics to be similar to this game (Galcon) Skip to about 1 minute in:

http://www.youtube.com/watch?v=S_gmrx1jREI&t=0m58s

The main thing I want to use is the way the ships go towards the planets. They are next to each other and never go on top of each other. I tried this by spawning a bunch of cubes on the same place and adding physics bodys to them and that worked but it looks really unorganized and just like a clump whereas in the game they look like an organized fleet. How might I make their movement look “cleaner” like in the game? Here is the code I used:

[lua]

    local function spawn()

        for i = 1, 50 do

            local newCreep = display.newRect(cw, 0, 25, 25)

            newCreep:setFillColor(0, 255, 0)

            physics.addBody(newCreep)

            newCreep:applyLinearImpulse(-0.1, 0.1, newCreep.x, newCreep.y)

        end

    end

[/lua]

Any help is appreciated! Thanks! :slight_smile: