Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Achievements API

alextel69 edited this page Apr 19, 2014 · 1 revision

This doc refers to Games.Achievements.* methods and constants, which are responsible for Achievemts API.

Games.Achievements.show():void

Shows default Achievements window

Games.Achievements.reveal(id:String):void

Reveal a hidden achievement to the currently signed in player. If the achievement has already been unlocked, this will have no effect.

Games.Achievements.unlock(id:String):void

Unlock an achievement for the currently signed in player. If the achievement is hidden this will reveal it to the player.

Games.Achievements.increment(id:String, numSteps:int):void

Increments an achievement by the given number of steps. The achievement must be an incremental achievement. Once an achievement reaches at least the maximum number of steps, it will be unlocked automatically. Any further increments will be ignored.