I want to build a poker-like game via turn-based challenge.
And the next player depends on various factor, folded? all-in? ....etc
1.
Can I use cloud code to simply "set" the next player?
Or can I use turn consume function multiple times?
2.
How can I do time-out maybe after 30 secs each turn?
After time-out, do the default move for the player to make game smoothly.
3.
Or should I not use turn-based?
Thanks a lot!
Jo
hi Katie
how can we do that you mentioned? 2- You can set up an event that set's a timer in cloud code to call the default move after 30 seconds.
Any answers to the question above?
The event/countdown will have to be started after the ChallengeEvent: challenge.takeTurn(playerID)
And on complete of the timeout of the event the:
challenge.consumeTurn(skipPlayer);
But how should the event be configured in the gmaesparks panel? And prob give an example for the cloud code on the event timeout.
Jo Huang
I want to build a poker-like game via turn-based challenge.
And the next player depends on various factor, folded? all-in? ....etc
1.
Can I use cloud code to simply "set" the next player?
Or can I use turn consume function multiple times?
2.
How can I do time-out maybe after 30 secs each turn?
After time-out, do the default move for the player to make game smoothly.
3.
Or should I not use turn-based?
Thanks a lot!
Jo
1 - You can use consumeTurn until Spark.getData().nextPlayer is the player you want.
2- You can set up an event that set's a timer in cloud code to call the default move after 30 seconds.
3- you can use turn based
Thanks
Katie
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
1 - You can use consumeTurn until Spark.getData().nextPlayer is the player you want.
2- You can set up an event that set's a timer in cloud code to call the default move after 30 seconds.
3- you can use turn based
Thanks
Katie
Zonecan Peyo
hi Katie
how can we do that you mentioned? 2- You can set up an event that set's a timer in cloud code to call the default move after 30 seconds.
4 people like this
Terrence Harry
Any answers to the question above?
hi Katie
how can we do that you mentioned? 2- You can set up an event that set's a timer in cloud code to call the default move after 30 seconds.
The event/countdown will have to be started after the ChallengeEvent: challenge.takeTurn(playerID)
And on complete of the timeout of the event the:
challenge.consumeTurn(skipPlayer);
But how should the event be configured in the gmaesparks panel? And prob give an example for the cloud code on the event timeout.
-
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