Vigyata.AI
Is this your channel?

Unreal Engine 5.1 Endless Runner Tutorial - Part 4: Changing Lanes

15.1K views· 11:14· Jul 13, 2023

🛍️ Products Mentioned (7)

Welcome back to the fourth part of our tutorial series for creating an Endless Runner game in Unreal Engine 5.1! In this video, we'll show you how to make the character switch lanes and increase speed as it runs. Stay tuned for more updates in our tutorial series, and don't hesitate to ask any questions in the comments section. Assets: https://bit.ly/3pCAXJ7 Note: Before using any of the assets, please make sure to read the Readme.txt 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 Intro 00:18 Adding Input Mappings 01:25 Adding Change Lanes Function 07:55 Change Lanes Preview 08:05 Increase Character Speed Function 10:40 Final Preview 11:00 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 back to part four of my Unreal Engine 5.1 Endless Runner tutorial series. In this video I focus on two big gameplay upgrades: smooth lane switching and gradual speed increase while the character runs. First, I set up clean input actions by duplicating my input mapping assets, creating Left_IA and Right_IA, and wiring them inside IMC_RunnerDefault to the A and D keys. Then inside BP_RunnerCharacter, I build a simple but solid “Change Lanes” system using an integer lane index, clamping it between 0 and 2, and moving the character on the Y axis. For the actual movement, I use a Timeline called “Transition” (0.2 seconds) and a Lerp to smoothly interpolate between lane positions stored in a float array (−325, 0, 325). This keeps the lane change snappy but not teleport-y. After that, I jump into BP_Floor and increase difficulty over time by multiplying Max Walk Speed by 1.001, clamping it (like 700 to 1500/1700), and setting it back on the Character Movement component. You can visualize it with Print String, and you should be careful not to push the max speed too high.

Frequently Asked Questions

🎬 More from Shiva's Gaming Zone