Define them in the portal
On your app’s Achievements page in the developer portal, add achievements with:
An app can have up to 200 achievements. They’re listed in the order you add them, and you can archive ones you no longer use.
Unlock from your game
newlyUnlocked is false and no XP is added. On the web (including WebGL, Construct, GameMaker and Defold), Gamavas shows a small “Achievement unlocked” notice the first time. Turn it off to show your own: notify: false, or Show notice off in Construct.
Server achievements
A game running in a browser can be modified, so anything it unlocks can be faked. For achievements that matter, choose only your server. Then:- The game can’t unlock it: it gets a
403 forbidden. - Your server unlocks it with a secret key, after checking the player really earned it.
- It can give more XP: up to 100.
XP limits
XP is capped so no game can farm it:
When a cap is reached, the unlock still counts (
newlyUnlocked: true) but xpAwarded is lower, or 0.
Listing achievements
achievements() returns your game’s achievements with the player’s progress, in the order you added them. Hidden ones appear once unlocked.
achievement.unlocked webhook.
