Vigyata.AI
Is this your channel?

Unreal Engine 5.1 Endless Runner Tutorial - Part 7: Score & High Score

8.7K views· 10:31· Jul 29, 2023

🛍️ Products Mentioned (7)

Welcome back to part 7 of our tutorial series for creating an Endless Runner game in Unreal Engine 5.1! In this video, we'll show you how to add scores and high scores to the game with HUD. Assets: https://bit.ly/3pCAXJ7 Note: Before using any of the assets, please make sure to read the Readme file provided. Get the Endless runner project files here: https://shop.shivadev.com/b/erprojectfiles Note: The project files are constantly updated to reflect the latest tutorial in the series. Stay Connected: Discord: https://discord.gg/zFZ43Hjs3R Twitter: https://twitter.com/shivasgaming75 GitHub: https://github.com/Shiva9168 Instagram: https://www.instagram.com/shivas_gamingzone/ Portfolio: https://shiva9168.github.io/ Email: shivasgaming75[at]gmail.com Support Me: Patreon: https://patreon.com/shivasgaming PayPal: https://paypal.me/Shivasgaming Help me make more content by donating! 00:00 Disclaimer 00:14 Introduction 00:28 Creating Variables 00:55 Adding Set Current Score Function 01:55 Adding Set High Score Function 05:20 Creating Gameplay HUD 09:35 Final Preview 10:20 Outro Track Title: Tranquility Music by: TeknoAXE Music Link: https://youtu.be/08ddPOJnTL4 // Ignore the tags below. They are provided for reference purposes only. Tags: #gamedevelopment , #unrealengine5 , Endless Runner Tutorial, Game Design, Game Programming, Game Tutorial, Indie Game Dev, Game Development Series, Endless Runner, #Subwaysurfers , #tutorial , Game Development for Beginners, Game Development Tutorial, Game Development Step-by-Step, Game Development Walkthrough, 3d Character, unreal character, #animation

About This Video

Hey Guys! Welcome to part 7 of my Unreal Engine 5.1 Endless Runner series—today I’m adding a proper score + high score system with a HUD. I start inside BP_RunnerGameMode by creating two integer variables: Current Points and Points Multi (I just duplicate with Ctrl+D). I keep both values at 1 to begin with, and then I wire up the scoring logic in BP_Floor so every time the floor logic runs, I multiply Points Multi (don’t make it too high) and add it into Current Points. I also comment that whole section as “Set Current Score” so it stays clean. After that, I set up saving the high score using a SaveGame blueprint called Runner_SaveGame with an integer HighScoreValue. In my RunnerCharacter Death function, I check if a save exists, load or create the save object, compare Current Points against HighScoreValue, and only overwrite the saved value if the current run is higher. Finally, I build a Gameplay_UI widget with icons and two text bindings—one pulls Current Points from the GameMode, and the other loads HighScoreValue from the save slot. When you play, the current score updates live, and after you lose and restart, you’ll see the high score persist.

Frequently Asked Questions

🎬 More from Shiva's Gaming Zone