More than one playe...
 
Notifications
Clear all

More than one player on local game

2 Posts
2 Users
0 Reactions
540 Views
(@markyd151)
Posts: 1
New Member
Topic starter
 

Sorry if this was already asked somewhere.  I searched and did not find it.

I am creating a turn based type game where there may be up to 6 people playing at once on the local game.

If I want to have them all sign up and log in, is it possible?

For example, if my game was monopoly and 4 people were playing on the same computer, could Combu handle having all players logged in at once?

Thanks,

MarkyD

 
Posted : 14/01/2015 8:38 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Since there can be only one loggedUser in CBManager it shouldn't be possible, but you can work around this by using a List to store the CBUser after each of the 4 logins and you will use Update method on them to make changes to their customData. The bad part is that every "social" action (leaderboard score, achievements, etc) are automatically associated to the current CBManager.loggedUser and you'll not be able to send scores for all the local players but the latest who logged in.

A solution could be to store the scores locally in your application and when it ends you'll display the login to save the scores of each player (this way you will create a cycle of event handlers: on successful login you'll send its score, on successful score sent you'll display the next player login).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 14/01/2015 8:51 pm
Share: