Skip to main content
Achievements reward players for playing your game. Each one adds XP to the player’s Gamavas level, which they carry to every game on Gamavas. Their profile shows them too.

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

In Construct, use the Unlock achievement action. Unlocking again is harmless: 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.
See Your server for setting up keys and checking who the player is.

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.
You can also hear about every unlock on your server with the achievement.unlocked webhook.