How am I supposed to get next player in a turn-based challenge to consume turn?
Spark.getData().nextPlayer is undefined when I use it in ChallengeStarted message Cloud Code.
Hi Roman,
You are accessing this value slightly incorrectly here. The following should work for you.
var nextPlayer = Spark.getData().challenge.nextPlayer
Try that and let me know if you have any further questions.
Regards,
Liam
Roman Kornev
How am I supposed to get next player in a turn-based challenge to consume turn?
Spark.getData().nextPlayer is undefined when I use it in ChallengeStarted message Cloud Code.
Hi Roman,
You are accessing this value slightly incorrectly here. The following should work for you.
Try that and let me know if you have any further questions.
Regards,
Liam
Customer Support
Hi Roman,
You are accessing this value slightly incorrectly here. The following should work for you.
Try that and let me know if you have any further questions.
Regards,
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