Create a Total War RTS Camera in Unreal Engine

  Рет қаралды 3,499

Scripted Adventure

Scripted Adventure

Күн бұрын

🎮 Dive into the world of Real Time Strategy Games and create your own RTS camera in Unreal Engine using C++ and Enhanced Input Actions! Inspired by the iconic Total War series, this tutorial is perfect for developers looking to add dynamic camera controls to their games. 🚀
🔵 What's Inside:
In this video, we begin with a basic setup using the top-down starter template in Unreal Engine and then dive into the creation of a custom Camera Pawn and Game Mode class. The setup will teach you everything from setting up your game mode to designate the CameraPawn as the default Player Pawn class, to creating and configuring a blueprint class for your camera.
Our focus then shifts to implementing the Camera Pawn. This video covers enabling the mouse cursor in the Begin Play function to handling camera movement based on user input in the Tick function. You'll learn how to use keyboard input, mouse position, and viewport size to achieve smooth camera movement, along with customizing movement speed and screen edge padding.
Next, we explore the exciting part of this build - Enhanced Input Actions. We demonstrate how to add MappingContext and set up event handling from Input Actions. This includes creating event bindings for movement (WASD keys), zoom (mouse wheel), and rotation (middle mouse button), ensuring a fully interactive camera experience.
As we progress, you'll see how to configure Action Properties in the Unreal Editor, assign them to your blueprint, and finally, implement the input event functions.
By the end of this tutorial, you'll have a functional RTS camera, similar to the legacy cameras found in Total War games, with adjustable blueprint values for the perfect gameplay experience.
📚 What You Will Learn:
The fundamental concepts of RTS cameras in Unreal Engine using C++ and Enhanced Input Actions.
🔍 Topics Covered:
0:00 - Introduction to RTS Cameras
0:19 - Installation & Setup
0:43 - Create the Camera Pawn
2:40 - Edge Based Mouse Movement
7:07 - Enhanced Input Actions
10:30 - Enhanced Input Mapping Context
14:06 - Final Implementation
17:34 - Done
👍 If you find this video helpful, please like and subscribe for more Unreal Engine tutorials!
🔗 Relevant Links:
Unreal Engine Documentation docs.unrealengine.com/5.3/en-...
Thank you for watching, and see you in the next tutorial!
#unrealengine #GameDevelopment #rts #Cplusplus #Programming #Gaming #Tutorial #TotalWar #EnhancedInput #ue5 #camera #gamedev #eventhandling #blueprints

Пікірлер: 19
@danieldaniel625
@danieldaniel625 3 ай бұрын
Please, keep doing the RTS tutorials - there are not many informative ones out there. Subscribed!
@ScriptedAdventure
@ScriptedAdventure 3 ай бұрын
Thank you so much for your comment. I will definitely do some more RTS videos (unit selection, movement etc.)
@NeilDonkin
@NeilDonkin 2 ай бұрын
This is excellent, thanks. Keep the great tutorials coming and I'm sure you'll get a lot of subscribers 👍
@ScriptedAdventure
@ScriptedAdventure Ай бұрын
Thank you so much!
@user-en8ep5gq1b
@user-en8ep5gq1b Ай бұрын
would be nice a series of rts combat like total war
@SuperLordee
@SuperLordee 4 ай бұрын
just found your channel. Keep posting videos love the content
@ScriptedAdventure
@ScriptedAdventure 4 ай бұрын
Thank you so much for the support! I'm thrilled you're enjoying the content.
@tacoman966
@tacoman966 Ай бұрын
Great video, thanks!
@versystudio822
@versystudio822 Ай бұрын
Thank you
@XVRKMMA
@XVRKMMA 4 ай бұрын
Could you post a tutorial on how to make a total war like game in UE5? I think its a very special topic and no one else has covered it so you would be the first to do it. For example look at Gorka's Tutorials on RPG/Assasins Creed Games. Or the basics if not a full tutorial.
@ScriptedAdventure
@ScriptedAdventure 4 ай бұрын
Thank you for the great suggestion. I'm definitely interested in exploring tutorials focused on aspects of Total War-style games. This could include topics like unit selection, the morale system, and combat mechanics.
@XVRKMMA
@XVRKMMA 4 ай бұрын
👍​@@ScriptedAdventure
@takyonstudio
@takyonstudio 4 ай бұрын
Thanks
@ScriptedAdventure
@ScriptedAdventure 4 ай бұрын
Thanks for watching! 🚀
@yevgeni10
@yevgeni10 Ай бұрын
Any chance you are making a video about MMORPG or RPG camera ??
@ScriptedAdventure
@ScriptedAdventure Ай бұрын
You mean in the style of Lost Ark or Baldurs Gate? Or do you have another game in mind?
@yevgeni10
@yevgeni10 Ай бұрын
Like World of Warcraft or other MMO that uses turns and free camera reset.
@Corvolive_
@Corvolive_ 2 ай бұрын
Can you create an udemy course?
@ScriptedAdventure
@ScriptedAdventure 2 ай бұрын
I am currently working on a mini-game tutorial series but afterwards I am considering creating an RTS course in the style of total war games
I Made a Tower Defense Game in Unreal Engine 4
13:58
Fat Dino
Рет қаралды 435 М.
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 683 М.
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53
100❤️
00:20
Nonomen ノノメン
Рет қаралды 74 МЛН
Её Старший Брат Настоящий Джентельмен ❤️
00:18
Глеб Рандалайнен
Рет қаралды 8 МЛН
The day of the sea 🌊 🤣❤️ #demariki
00:22
Demariki
Рет қаралды 50 МЛН
I Made a Game With Only FREE Assets In Unreal Engine 5
11:45
Smart Poly
Рет қаралды 471 М.
Tic Toxic Studios - AI Controlled NPCs in Unreal Engine 5 - Part 1.
13:08
Unreal Engine is Ruining Video Games
4:43
Studio Reborne
Рет қаралды 657 М.
Strategy Game Camera with Unity's New Input System
41:46
One Wheel Studio
Рет қаралды 28 М.
I Made a Neural Network with just Redstone!
17:23
mattbatwings
Рет қаралды 584 М.
Unreal Engine C++ Tutorial [Part 1: Player Movement]
20:13
Acromata
Рет қаралды 20 М.
How to Make a Game Mode in Unreal Engine 5
7:08
Gorka Games
Рет қаралды 12 М.
RTS Unit Setup & Selection Decal Material in Unreal Engine
11:23
BuildGamesWithJon
Рет қаралды 23 М.
小女孩把路人当成离世的妈妈,太感人了.#short #angel #clown
00:53