Game ideas & features

Your next feature

Achievements

Each key unlocks once per player. Manual rules trust the game; statistic thresholds evaluate in the same affected report.

SDK developRequires a player session
Godot
Illustration of Achievements
Your visible result

After the action, first_steps is unlocked for the same player. Repeating its key grants no second unlock or reward.

Video coming later

This step does not have a video yet. The guide and MCP request are ready to use.

Achievements

Prepare the same project

  1. Choose the same project in the dashboard as in your game configuration.

    Achievements →
  2. Create or reuse these test entries in the dashboard form. These are example values, not current project data.

    Key
    first_steps
    Name
    First steps
    Unlock rule
    manual
    Active
    true
    Hidden until unlocked
    false
    No reward
    []

    Each key unlocks once per player. Manual rules trust the game; statistic thresholds evaluate in the same affected report.

  3. Save, reload and verify the entries before running the example. Preserve unrelated definitions.

Build this feature

You can preview the guide. Running it requires an active project key. Prepare project

SDK installed, project configuration imported and player signed in.

This SDK example uses develop. Check whether the required APIs exist in your installed SDK.

Complete the Quickstart connection with the intended player. Call run_reviewed_action() from an explicit button or scene action. Opening the file alone sends no request.

GDScript
res://scripts/achievements.gd
horizOn call
1extends Node
2​
3# Existing configured SDK and authenticated player session required.
4# Invoke run_reviewed_action explicitly after reviewing this example.
5# This explicit action unlocks the shown configured achievement key.
6func run_reviewed_action() -> void:
7 if not Horizon.auth.isSignedIn():
8 return
9 var user_id: String = Horizon.auth.getCurrentUser().userId
10 var loaded: Dictionary = await Horizon.achievements.getAchievements(user_id, "")
11 if not loaded.success:
12 push_warning(loaded.errorCode)
13 return
14 for progress in loaded.data.progress:
15 print(progress.key, ": ", progress.rewardState)
16​
17 # Configure manual first_steps; invoke on the corresponding game action.
18 var unlocked: Dictionary = await Horizon.achievements.unlock(user_id, "first_steps")
19 if not unlocked.success:
20 push_warning(unlocked.errorCode) # After timeout retry the same key.
21 return
22 # Complete progress has no unlock date or pending reward payload.
23 # Values were credited atomically. Refresh playerValues when displaying balances.
24 # No Inbox claim or local value addition. Retry the original key after an uncertain reply.
Open the complete SDK sample ↗

Test your new feature.

After the action, first_steps is unlocked for the same player. Repeating its key grants no second unlock or reward.

Choose the same project in the dashboard as in your game configuration.

Endpoints
  • GET/achievements
  • POST/achievements/unlock
  • POST/achievements/rewards/deliver
All endpoints in the API reference
Our suggestion for your next step

Give every round a high score.

Save the score after a round and show who's ahead. Keep using your connection and player session.