Say i have a database that contains a food level for a users 'town'. I want this to reduce over time, but i want it done server side so that even if the user isnt online it will reduce. How would I go about this?
Best Answer
T
Tech Support
said
almost 8 years ago
Hello Jason Chadwick,
I believe you'll find that Configurator --> CloudCode -->System --> EveryMinute script will be useful in your case. This script executes every minute and you can easily schedule some database updates there. You might find this article useful for your development.
I believe you'll find that Configurator --> CloudCode -->System --> EveryMinute script will be useful in your case. This script executes every minute and you can easily schedule some database updates there. You might find this article useful for your development.
Regards,
Mantas
J
Jason Chadwick
said
almost 8 years ago
Thank you. Would this stil run even if the users is offline?
Tech Support
said
almost 8 years ago
This will run every minute on the server, regardless if anyone's online, you will have to write the logic that updates the database for both online and offline players.
Jason Chadwick
Say i have a database that contains a food level for a users 'town'. I want this to reduce over time, but i want it done server side so that even if the user isnt online it will reduce. How would I go about this?
Hello Jason Chadwick,
I believe you'll find that Configurator --> Cloud Code --> System --> Every Minute script will be useful in your case. This script executes every minute and you can easily schedule some database updates there. You might find this article useful for your development.
Regards,
Mantas
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstTech Support
Hello Jason Chadwick,
I believe you'll find that Configurator --> Cloud Code --> System --> Every Minute script will be useful in your case. This script executes every minute and you can easily schedule some database updates there. You might find this article useful for your development.
Regards,
Mantas
Jason Chadwick
Thank you. Would this stil run even if the users is offline?
Tech Support
This will run every minute on the server, regardless if anyone's online, you will have to write the logic that updates the database for both online and offline players.
Jason Chadwick
perfect thank you
-
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