achievement_increment

Increment an achievement by a given value (Google Play only).

Syntax:

achievement_increment(ach_name, value)


Argument Description
name The name of the achievement.
value The value to be sent.


Returns: N/A


Description

Google Play permit Android games to have achievements with no completion value and you can use this function to increment those achievement by a given amount.

Example:

achievement_increment("ach_TotalScore", score);

The above code adds the current player score to the achievement "ach_TotalScore".


Back: Achievements and Leaderboards
Next: achievement_show_achievements
© Copyright YoYo Games Ltd. 2018 All Rights Reserved