Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

GameKit.Score.New

Creates a new score object.

Component Version macOS Windows Linux Server iOS SDK
GameKit 8.5 ✅ Yes ❌ No ❌ No ❌ No ✅ Yes
MBS( "GameKit.Score.New"; LeaderboardIdentifier { ; PlayerIdentifier } )   More

Parameters

Parameter Description Example Flags
LeaderboardIdentifier The identifier for the leaderboard for this score.
PlayerIdentifier The player identifier, if not the current one. Optional

Result

Returns score identifier or error.

Description

Creates a new score object.
Returns score identifier for a new score object for the specified leaderboard and optional player.

Your game explicitly allocates and initializes a score object using the designated player and current date when it needs to report a new score to Game Center.

See also

This function is free to use.

Created 5th November 2018, last changed 8th November 2018


GameKit.Score.LeaderboardIdentifier - GameKit.Score.Player

💬 Ask a question or report a problem