![]() ![]() Replace "developmentMode" with boolean true or false (depending on which environment you created the leaderboard in in LootLocker).Replace "version" with the version of your game, for example "0.0.0.1" as a string.Replace "leaderboardID" with the leaderboardID(int) or key(string) that you copied from LootLocker.Replace "gameAPIkey" with the Game API key you copied from LootLocker as a string.Next we will replace the variables that we just entered with real data. If you’re using GML Visual, you’ll need to add the “Execute Code” action and enter the code inside it. In the Create event, insert the following code: LootLockerInitialize("gameAPIkey", "version", "developmentMode", "leaderboardID") Run InitializeLootLocker() from any Create event You should see the ID of the leaderboard you created earlier, you can also use the key that you put in earlier to identify the leaderboard. The leaderboardID can be found by clicking on Systems and selecting Leaderboards. The Game API key can be found in the Settings menu by clicking the cog wheel in the sidebar and selecting Game Settings. We'll now want to copy the Game API key and leaderboardID from the LootLocker console into GameMaker. Great, now we've created the leaderboard in LootLocker and can begin implementing it in GameMaker! Copy the Game API key & leaderboardID Check “Enable Game API writes”, and click Save: Give your leaderboard a name and key, the name is what you use inside the LootLocker dashboard, the key is what you can use as an identifier in your game.In the LootLocker dashboard, click the Systems icon in the sidebar, and then Leaderboards:. ![]() Now that you've signed up and configured LootLocker, it's time to create a leaderboard for your game. Now we have our LootLocker settings just how we want them and can continue setting up our leaderboard.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |