# Achievements

Video Tutorial

# Create Achievements

Go to Achievements under Progression in Game Services and then press on Create Achievement

Create Achievement
Create Achievement

Now you will notice a Step 1/2, where it will ask you to attach a stat to the achievement. You can select the stat you created from the dropdown and put the amount for the achievement to be unlocked.

Attach Stats
Attach Stats

Like, in the below image, see we have attached a KILLS stat and the achievement will be unlocked when the player kills 20 enemies.

Alt text
Alt text

Now press Next, you will see a Step 2/2, where you can add the achievement name, description, icon and other stuff. All these values will depend upon your usecase.

Achievement ID is also a variable which you can set anything, but it should be unique for each achievement.

# Get Achievement Progress

You can get the progress of the achievement by using the below function. It will return the progress of the achievement in percentage.

# Get More Information about Achievement

You can get more information about the achievement by using the below function. It will return the information about the achievement in a struct.

# Unlock Achievement

There is nothing special about unlocking an achievement, you just need to make sure the player reaches the level of stat you have set for the achievement. For example, if you have set the achievement to unlock when the player reaches 20 kills, then you just need to make sure that the player reaches 20 kills and the achievement will be unlocked automatically.

Image From Video
Image From Video