Platforms to show: All Mac Windows Linux Cross-Platform
Back to GKAchievementMBS class.
GKAchievementMBS.Available as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Should always be true on Mac OS X 10.8 and newer.
GKAchievementMBS.loadAchievements(tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
When this method is called, it creates a new background task to handle the request. The method then returns control to your game. Later, when the task is complete, Game Kit calls GameKitMBS.loadAchievementsCompleted event.
GKAchievementMBS.reportAchievements(achievements() as GKAchievementMBS, tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | GameKit | MBS MacFrameworks Plugin | 13.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Percent complete is required. Points, completed state are set based on percentComplete. isHidden is set to false anytime this method is invoqued. Date is optional. Error will be nil on success.
Possible reasons for error:
1. Local player not authenticated.
2. Communications failure.
3. Reported Achievement does not exist.
Later calls GameKitMBS.reportAchievementsCompleted event.
Available on Mac OS X 10.8.2 and newer.
GKAchievementMBS.resetAchievements(tag as Variant = nil)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | GameKit | MBS MacFrameworks Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop only |
Calling this class method deletes all progress towards achievements previously reported for the local player. Hidden achievements that were previously visible are now hidden again.
When this method is called, it creates a new background task to handle the request. The method then returns control to your game. Later, when the task is complete, Game Kit calls GameKitMBS.resetAchievementsCompleted event.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.