Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Example project (the whole project folder, zipped): Achievements-Example.zip It is a single-scene project with no assets: unzip it and open |
… page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
Updated to 1.1.0:
Updated example project (the whole folder with its assets, zipped): Achievements-Example-1.1.0.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Achievements: add local achievements to a game with no setup. Define each achievement once (identifier, title, description, goal), unlock it in one go or add progress until it reaches its goal. Progress is saved on the player's device, and a toast slides in when an achievement is unlocked.
There is no general achievements extension in the store yet (only platform-specific ones like Game Jolt and Wortal).
Progress,Goal,ProgressPercent,Count,UnlockedCount,IdAt,Title,Description,Icon,LastUnlocked(enough to build an achievements screen with a Repeat event)How to use it
Define achievement "coin_hunter": "Coin Hunter" (goal: 5).Add 1 to the progress of achievement "coin_hunter". It unlocks at 5 and the toast appears.Achievement "coin_hunter" was just unlocked→ play a sound or give a reward.The toast with a translated label and custom colors:
Example project
The example project (v1.1.0, with its assets) is linked as a ZIP in the comments. Controls: SPACE jump, C find a coin, wait 15 s, H finds the secret achievement, B moves the toast, M translates it, R resets. Its events are commented and include an achievements screen built with
IdAt.Help page (the extension's help link): https://juslangit.github.io/gdevelop-achievements/
Tested in GDevelop 5.6.287 (web export in Chrome, desktop and phone-sized screens, and a scene rendered in 3D): unlocking, progress, secret achievements, icons (and the star when an image is missing), queued toasts, the toast condition with a sound, saving across reloads, reset. Source and tests: https://github.com/juslangit/gdevelop-achievements
Checklist
extensions/community/.AI usage
🤖 Generated with Claude Code