Moving multiple objects on a map
Posted
by
Dave
on Game Development
See other posts from Game Development
or by Dave
Published on 2012-04-10T01:21:03Z
Indexed on
2012/04/10
5:44 UTC
Read the original article
Hit count: 187
game-design
I have multiple objects on my isometric game, for example, NPC's doing path finding automatically to walk around the map. Now there could be any number of them from 0 to infinity (hypthetical as no PC could handle that).
My question is: is simply looping each one individually the smartest way to animate them all? Surely as the number of units increases you will notice a lag occuring on units near the end of loop still "waiting" for their next animation movement.
The alternative is a swarm algorithm to move all objects together. Is that a smarter idea or do both situations apply depending on the circumstances of the game?
© Game Development or respective owner