Heyzap Achievements Integration Tutorials
The following tutorials are designed to guide you through adding Heyzap Achievements to your flash game.
The current latest Heyzap developer tools API version is 3.3.1.
Contents
Create Achievements To Give From Your Game
To use Heyzap Achievements, you'll need to download and install the Heyzap tools.
To allow players of your game to earn achievements, you first need to add these achievements to your game.
Create achievements to unlock in your game by going to the developer dashboard, selecting the game you want to add achievements into, then selecting the Achievements tab.
Next, click the "Add Achievement" button to begin creating a new achievement.
Fill in the details about the new achievement (eg. name, image, points) and press save. The next screen will then show you example ActionScript code you can use to unlock achievements for players in your game, and to display the list of possible achievements to your player.
Give Players Achievements Inside Your Game
To use Heyzap Achievements, you'll need to download and install the Heyzap tools.
Once you have created some achievements , you can unlock these achievements for a player inside your game. This will result in an achievement popup being shown to the user.
To unlock an achievement for a player, paste the following ActionScript code at the desired point in your code, eg. when your player has earned a black belt:
Code Snippet:
HeyzapTools.send("achievementEarned", {achievement_key: "black-belt"});
Example Screenshot:
Related API Links:
Messages: achievementEarnedShow Your Player A List Of Possible Achievements
To use Heyzap Achievements, you'll need to download and install the Heyzap tools.
Once you have created some achievements, you can display a list of possible achievements to players inside your game.
You can show the achievements popup in your game by pasting the following ActionScript code at the desired point in your code, eg. on a button onRelease event:
Code Snippet:
HeyzapTools.send("showAchievements");
Example Screenshot:
Related API Links:
Messages: showAchievementsEvents: popupShown, popupClosed
Give Player In Game Points Without Achievements
To use Heyzap Achievements, you'll need to download and install the Heyzap tools.
To give players points in your game, paste the following ActionScript code at the desired point in your code, eg. when a player has earned some experience:
Code Snippet:
HeyzapTools.send("giveUserPoints", {points: 3});


