Please help. I have a new task in my game. Every turn in my game have a time limit. So I need to check time stamp between start turn time point and end turn time point, every minute. How can i get all challengeInstances every minute? Is there optimal way to get all challengeInstances for all players?
You could schedule the consumption of the turn through cloud code using the SparkScheduler. When a player begins there turn you can schedule the ending of said turn. However, if they invoke turn consumption themselves you can cancel the scheduled code and just end it explicitly.
Does that make sense?
Best Regards, Patrick.