Vigyata.AI
Is this your channel?

Unreal Engine 5.1 Endless Runner Tutorial - Part 9: Spawning Coin Collectables

7.5K views· 15:08· Sep 1, 2023

🛍️ Products Mentioned (7)

Welcome back to part 9 of our tutorial series for creating an Endless Runner game in Unreal Engine 5.1! In this video, we'll show you how to Spawn Coins and Make player collect them. 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:25 Importing Coin and SoundFX 01:30 Creating Coin Blueprint 02:15 Spawn Coins Function 06:36 Function to Collect Coins 08:40 Saving Coins Function 12:50 Gameplay UI 14:30 Shoutout to my Patron 15:02 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

In Part 9 of my Unreal Engine 5.1 Endless Runner series, I add proper coin collectables—starting from importing the coin mesh and pickup sound, all the way to spawning, collecting, saving, and showing coins on the HUD. I import the assets into the Runner/Meshes folder, apply M_Metal_Gold (and if you don’t see it, I show how to add Starter Content), then create a simple BP_Coin with a static mesh + rotating movement so it looks like a real pickup in-game. After that, I go into BP_Floor and build dedicated Coin Spawn Points (separate from obstacle points), and I color the arrows so it’s easy to debug in the viewport. Then I copy my obstacle spawning logic into a new Spawn Coins function, tweak the ranges (I prefer 75 for spacing, and 5–8/9 for spawn count), and keep the Switch on Int because it helped me control over-spawning. Finally, I handle overlap logic to increment a Coins variable in BP_RunnerGameMode, play a 2D pickup sound, and destroy the coin. To prevent coins resetting on restart, I save CoinValue in Runner_SaveGame, load it on BeginPlay, and bind it to my Gameplay_UI so the HUD always reflects the saved total.

Frequently Asked Questions

🎬 More from Shiva's Gaming Zone