Game Development Community

How to synchronize multiple NPCs' action?

by Nabarro · in Torque Game Engine Advanced · 03/08/2009 (7:29 pm) · 1 replies

Since NPCs' actions are ticked(one after another), how to make them act(like dance) with the same action in the same time? In other words, how to synchronize NPCs' or players action?

It seems that engine codes need to be changed, how to do that? Anybody may help?

Very appreciated,

#1
03/17/2009 (7:22 am)
A tick is so small that I doubt a player would notice, unless you're updating a huge number of NPCs. However, one thing you can look into doing is maybe a shared variable for this kind of use. That way, when they get updated, they look at that variable and see whatever they would have to do that is synchronized.