Sign In Register

How can we help you today?

Start a new topic
Answered

newbie wanna know how to build a timer

does anybody can tell me how i can save time6 I built a countdown timer that gives life when the time is over and the timer starts when the user is game over, now id like to save it here but i dont know how..  thanks!


Best Answer

Hi Marc


The code you want  to run at the scheduled time should be put in a module.

And the call to set up the scheduler can be put in any event. 

This guide will tell you how to set up everything.


Regards

Katie



Hi Marc,


You could use our SparkScheduler to do this. We have more details on it in our documentation. If you encounter any issues trying to implement it please let us know.


Regards,

VInnie


1 person likes this

what i read in the exemple of the documentation is what i have to write in the cloud code or inside unity?

Hi Marc


SparkScheduler is part of GameSparks cloud code features, so can only be used in cloud code.


Regards

Katie 

ok and should i build a script only for the scheduler or if i can put it together with my other saved datas?

Answer

Hi Marc


The code you want  to run at the scheduled time should be put in a module.

And the call to set up the scheduler can be put in any event. 

This guide will tell you how to set up everything.


Regards

Katie


thanks!

And how can i call it from unity in c#?? there's no documentation for this...

Login to post a comment