We suggest using our premade Leaderboard assets before you try to start from scratch. They contain everything you need to set up a Leaderboard.
If you'd like to make one from scratch, you can follow these instructions:
First, you need to add the Leaderboard Entry logic node.
Depending on what kind of leaderboard you want to make, you'll need to do the following.
Score-based leaderboard:
1. Set up a way to collect score. An easy way to do this is to use premades such as the Collectable Coin.
2. Link the value from the collectable score to the Leaderboard Entry node. Make sure that use these settings:
3. Now set up a Game End node to trigger once the player has died/collected all the score/etc. On game end, you'll want to execute the Leaderboard Entry node.
4. Playtest and publish.
Timer-based leaderboard:
1. Set up a Timer node to keep track of the time. You can link it to a Text node to let the player see the progress of time.
2. Think of how you want the Hype to end. The player collects all the coins? The player reaches the end of the level? It's up to you!
3. Now set up a Game End node to trigger once the player has completed the level. On game end, you'll want to execute the Leaderboard Entry node.
4. Playtest and publish.