I want to control a number in real time according to button clicks with cloudScript, I was thinking of saving that number in a database and updating it as that button was being pressed, however, I can not quite understand it Cloudscript, would you have any idea how I can do this? I just want to update this number in real time, as if it were, for example, to show in a UI text, the amount of online players. help me please. And sorry for the typos. Because I'm using google translator. thanks in advance.
Answer by Brendan · May 23, 2017 at 10:20 PM
There's a full discussion of this topic in this thread: https://community.playfab.com/questions/956/211248347-Writing-Title-Data-in-Cloud-Script.html. In short, there is no generic data store that can be both read from and written to by all users. For the feature you describe a Redis integer value, or similar. We'll be providing queries for more realtime information on Segments in a future update, at which point the count of active users will be supported directly.