change order / skip some players in Turn-based game
J
Jo Huang
started a topic
over 7 years ago
Is that possible to change order / skip some players in Turn-based game?
Like that you can assign the next player.
And is that possible to implement time-out function in turn-based mode?
Thanks!
Best Answer
C
Customer Support
said
over 7 years ago
Hi Jo,
If you call SparkChallenge.consumeTurn(String playerId) the turn token will be moved on to the next player. Turned based mode is essentially sending challenges and responses back and forth between players so you can indeed have an expiry on them. With the above call you can set your challenge up so that when the challenge expires the move will pass onto the next player.
Thanks,
Liam
1 Comment
Customer Support
said
over 7 years ago
Answer
Hi Jo,
If you call SparkChallenge.consumeTurn(String playerId) the turn token will be moved on to the next player. Turned based mode is essentially sending challenges and responses back and forth between players so you can indeed have an expiry on them. With the above call you can set your challenge up so that when the challenge expires the move will pass onto the next player.
Jo Huang
Is that possible to change order / skip some players in Turn-based game?
Like that you can assign the next player.
And is that possible to implement time-out function in turn-based mode?
Thanks!
Hi Jo,
If you call SparkChallenge.consumeTurn(String playerId) the turn token will be moved on to the next player. Turned based mode is essentially sending challenges and responses back and forth between players so you can indeed have an expiry on them. With the above call you can set your challenge up so that when the challenge expires the move will pass onto the next player.
Thanks,
Liam
Customer Support
Hi Jo,
If you call SparkChallenge.consumeTurn(String playerId) the turn token will be moved on to the next player. Turned based mode is essentially sending challenges and responses back and forth between players so you can indeed have an expiry on them. With the above call you can set your challenge up so that when the challenge expires the move will pass onto the next player.
Thanks,
Liam
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics