Install
1
Install the addon
Download
gamavas-pass-<version>.c3addon from github.com/Gamavas/pass-construct/releases and drag it into Construct, or use Menu → View → Addon manager → Install new addon.2
Add the object
Add the Gamavas Pass object to your project (under Web) and set its Client ID property.
3
Register your page
At developer.gamavas.fun, add the page your game runs on under Where sign-in returns. To test in Construct’s preview, add the preview page’s address too, without anything after
? or #.Sign players in
Use Sign in from a click or touch: browsers only open popups then. Players stay signed in between visits, and Gamavas Pass knows who’s signed in before your first layout starts, so check Is signed in on start of layout.
Player expressions:
PlayerID, PlayerHandle, PlayerName, PlayerAvatarURL and PlayerEmail.
Achievements and progress
Load achievements, then On achievements loaded:
AchievementCount and, for i from 0, AchievementKey(i), AchievementName(i), AchievementDescription(i), AchievementIconURL(i), AchievementXP(i), AchievementUnlocked(i). Use Repeat AchievementCount times with loopindex. AchievementsJSON gives them all for the JSON object, and Has achievement tests one key.
Load progress, then On progress loaded: Level, XP, LevelTitle, XPToNextLevel.
Selling your game
On purchase cancelled fires when the player closes the checkout without buying.
Your server
Use Get access token, then on On access token, sendGamavasPass.AccessToken to your server (with the AJAX object, for example). Verify it there with @gamavas/pass-server.
Errors
On error fires when an action fails. Pick which action, or any.ErrorCode is one of popup_closed or access_denied (signing in), popup_blocked, signed_out, forbidden, not_found, rate_limited or network. ErrorMessage explains it, and ErrorAction names the action.

