We are using Leaderboards and would like to do something specific. We know GameSparks uses a Message system to notify in case of new high score and this kind of stuff. However, we would like to know immediately (i.e not wait for the Message to arrive) when sending a score if it was a new highscore.
We have a very standard event SendScore that is used by our Leaderboard. So the event in CloudCode is empty (we followed the GS documentation for that). Is it possible to add code to this event, in CloudCode, to know if it was a new highscore or not ? Or is there no other way but to wait for the Message sent by GS separately ?
What exactly is the use case here ? The only way I can imagine this working is by pulling the current users leaderboard score back in the "LogEventRequest" Cloud Code script. You could then check it against the score being passed in by the user and pass it back to the response using scriptData if it's higher. Does that sound like it would work for you ?