Sign In Register

How can we help you today?

Start a new topic

how to add time limit for turn

 Hi team.
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? 

1 Comment

Hi Andrii, 

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. 

Login to post a comment