achievement_show_achievements

Shows the achievements page for the chosen platform.

Syntax:

achievement_show_achievements()


Returns: N/A


Description

This function will open the achievements page for the chosen platform. Please note that this is an asynchronous function, ie: your game will continue to run in the background while the achievements page is being shown. As such, you should be careful where you use this and make sure to pause the game or only permit it to be shown in areas of your game where it will not interfere with the game-play.


Example:

if achievement_available()
   {
   global.Pause = true;
   instance_create(0, 0, obj_Pause);
   achievement_show_achievements();
   }

The above code checks to see if the chosen leaderboard and achievement service is available and if so it sets a global variable and creates a controller "pause" instance before calling the function to show the achievements on screen.


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