Integrate Other Page with MSquared Morpheus, enabling the use of web3 avatars, on-chain badges, leaderboards, payments, rewards, and more within Unreal Engine based MSquared worlds.
BP_CoinClaim
, BP_LeaderboardMesh
, BP_StartTimer
, BP_StopTimer
, and BP_ResetTimer
, all while ensuring smooth interaction with external APIs and seamless gameplay mechanics.
By the end of this tutorial, you’ll have a fully functional timer system and leaderboard in your game, ready to track player performance and display the best times!
Download The Files
Components Overview
BP_CoinClaim
– enter the code obtained from the Other Page accountBP_LeaderboardMesh
– Leaderboard (with the default mesh which you can change)BP_StartTimer
– starts the timer (an invisible box collider that can be resized as needed)BP_StopTimer
– stops the timer and keeps your time static on the screen (an invisible box collider that can be resized as needed)BP_ResetTimer
– resets the time to 0 (an invisible box collider that can be resized as needed)Folder Game Mode
BP_Origin_PlayerControllerTemple
– all logic for starting, stopping, resetting the timer, and CoinClaim is located hereParameters
HeaderXkey
Community
Badge
ApiUrl
– enter it without the trailing slash, e.g., https://api.other.page/v1WB_LeaderboardOP
as wellIn World Settings
BP_Origin_GameModeTemple
and enable GameMode Override for the timer logic to work.Leaderboard
WB_LeaderboardOP
– currently set to display the top 20 players with the best times. You can change the “F” field (refer to the API documentation)OP API