Vigyata.AI
Is this your channel?

Unreal Engine 5.1 Endless Runner Tutorial - Part 16: Resuming Gameplay

3.8K views· 26:15· Feb 8, 2024

🛍️ Products Mentioned (7)

Welcome back to part 16 of our tutorial series for creating an Endless Runner game in Unreal Engine 5.1! In this video, we'll show you how to implement the 'Resume Game' feature. 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! -- Timestamps -- 00:00 Disclaimer 00:15 Intro 00:26 Creating Is Dead Variable 01:10 Creating Obstacle Destroyer 04:08 Resume Game Function 09:30 Adding Resume Button 10:10 Creating Resume Popup WBP 16:30 Get Coins Value Function 20:30 Subtract Coins Function 23:00 Giving Functions to Buttons 24:10 Gameplay 25:00 Adding Minor Improvements 25:28 Final Gameplay 26:07 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 , #animation , #powerups , #endlessrunner , #Subwaysurfers , #tutorial , Endless Runner Tutorial, Game Design, Game Programming, Game Tutorial, Indie Game Dev, Game Development Series, Endless Runner , Game Development for Beginners, Game Development Tutorial, Game Development Step-by-Step, Game Development Walkthrough, 3d Character, Spawning Buildings, Buildings, Skyline, Environment

About This Video

In Part 16 of my Unreal Engine 5.1 Endless Runner series, I’m adding a proper “Resume Game” feature so the player can continue even after dying. I start inside my BP_RunnerCharacter by creating an Is Dead boolean, setting it on Begin Play, and then ticking it inside my Death function. That small variable makes the whole flow clean because I can branch my logic based on whether the character is actually dead or not. After that, I create a new actor blueprint called BP_ObstacleDestroyer. The whole point of this blueprint is to clear obstacles around the character when I resume, so the player doesn’t instantly die again. I use a Sphere Collision, overlap logic, and a Sequence with casts (like BP_Obstacle_Blocker and BP_Obstacle_Wall) to destroy nearby obstacles, with a small delay to make sure everything gets cleaned up properly. Finally, I build the Resume Game function: remove widgets, reset transform/lane position, reattach mesh, set movement mode back to Walking, enable input, restore gameplay UI, and switch input mode back to Game Only with the mouse cursor hidden. I also add a Game Over “Resume” button that opens a ResumePopup widget, where I check coins from the save slot, block the resume if coins are low, and subtract coins if the player confirms. I even show a quick improvement like making the character jump on resume, and you can extend it with sounds and Niagara/Cascade effects.

Frequently Asked Questions

🎬 More from Shiva's Gaming Zone