achievement_show_achievements


语法:

achievement_show_achievements()


返回:

N/A(无返回值)


描述

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.


例如:

if achievement_available()
   {
   global.Pause = true;
   instance_create_layer(0, 0, "Controllers", 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.