Avatar

Level 2

Hi,

I'm currently working on a multiplayer game based on AFCS. Players will have to play after each other. The current player client is responsible to find the next player and give him the turn.

To do so, I was thinking about using the userCollection and I was assuming that it was a shared Collection identical for all clients. So, to find the next player, the current player only had to search for himself in the Collection and give the turn to the next user in the list.

But, unfortunately, it seems that the userCollection isn't a shared object, at least the userCollection order is different for each user, meaning that I can't use it to find the next player.

Did I do something wrong? If not, is it possible to have the same order for all clients in the userCollection? Or do I have to code my own sharedUserCollection (which I would hate because it's asking for unconsistencies)?

Axel