I'm attempting to get used to the systems that GameSpark operates with but I have a few questions:
Whats the best way to create custom functions and call them through cloud code?
Are runtime collections persistent?
Is there any native API for comparing the date/time?
Is it better to use runtime collections or SetScriptData() for persistent data such as XP, items in an inventory etc?
Thank you.
1 Comment
Tech Support
said
over 5 years ago
Hi Ian,
1- We have Log Event Requests for custom function creation. These functions have a key in which they can be referenced by and input in the form of attributes. 2- Runtime collections are persistent in an environment. They are not persistent from Preview environments to Live. 3- Yes we have the JavaScript time and date libraries for that. 4- That depends on your approach. setScriptData() is still saving it in a collection. If you're saving tons of data on the player you might want to store it in a separate collection to save on packet sizes when getting default player scriptData back in responses and messages which uses more bandwidth.
Ian Kettlewell
I'm attempting to get used to the systems that GameSpark operates with but I have a few questions:
Thank you.