Multiple Player Control @ the same time..

Say I have 5 little critters I want to control at the same time. You know, move them about the terrain, have em jump all at the samtime. No one critter is the leader. How would I go about doing that.

My thoughts:

  1. Add them all in an Empty Game Object and apply the script to the game object

Not sure if ti’s that simple. Sort of like pikmin, but you controld them all at once.

Thanks

You could control an invisible point, and move that point around the screen.

And then the Critters themselves just have a constant seek to point command. This would make them move constantly to the same locations and huddle around them.

Although things like jumping you’d probably have to code to have each critter respond to a jump command.

Also look up Flocking Algorithms as those can be really cool to have a cohesive group move with no clear leader.

@Ntero - thaks for the pointer. I think I found exactly what I was looking for here: http://www.unifycommunity.com/wiki/index.php?title=Flocking

Do you think this would work for what I described?
Minus the jumping which as you said would have to be coded seperately.

The flocking behaviour is a good fit for what you describe but as you said, it will need some extra code for your specific requirements.