Override default turn

0 votes
Hi

I am customizing turn base room functionality and my reqirement is that when two user joins in the room then starting game from server and assign first turn to user who joined exectly after first user (i.e. second user) but when i call startGame server always assigh first turn to first joined user, so how can i override turn in initial game starting ?. I have tried calling setNextTurn before starting game but i did not work.

So please guide me in this problem.

Thanks.
asked Apr 18, 2014 in AppWarpS2 by maulik.kaloliya (34 points)

1 Answer

0 votes
Looks like the right approach.. Whats the value returned (true/false) from setNextTurn?
answered Apr 19, 2014 by starabc (39 points)
setNextTurn validates that the user is one of the joined users of the room or not. If s it returns true (success) else false.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...