Create a Total War RTS Camera in Unreal Engine

🎮 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
    @danieldaniel6253 ай бұрын

    Please, keep doing the RTS tutorials - there are not many informative ones out there. Subscribed!

  • @ScriptedAdventure

    @ScriptedAdventure

    2 ай бұрын

    Thank you so much for your comment. I will definitely do some more RTS videos (unit selection, movement etc.)

  • @NeilDonkin
    @NeilDonkinАй бұрын

    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!

  • @SuperLordee
    @SuperLordee3 ай бұрын

    just found your channel. Keep posting videos love the content

  • @ScriptedAdventure

    @ScriptedAdventure

    3 ай бұрын

    Thank you so much for the support! I'm thrilled you're enjoying the content.

  • @user-en8ep5gq1b
    @user-en8ep5gq1bАй бұрын

    would be nice a series of rts combat like total war

  • @XVRKMMA
    @XVRKMMA3 ай бұрын

    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

    3 ай бұрын

    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

    3 ай бұрын

    👍​@@ScriptedAdventure

  • @tacoman966
    @tacoman96628 күн бұрын

    Great video, thanks!

  • @versystudio822
    @versystudio822Ай бұрын

    Thank you

  • @takyonstudio
    @takyonstudio3 ай бұрын

    Thanks

  • @ScriptedAdventure

    @ScriptedAdventure

    3 ай бұрын

    Thanks for watching! 🚀

  • @yevgeni10
    @yevgeni10Ай бұрын

    Any chance you are making a video about MMORPG or RPG camera ??

  • @ScriptedAdventure

    @ScriptedAdventure

    29 күн бұрын

    You mean in the style of Lost Ark or Baldurs Gate? Or do you have another game in mind?

  • @yevgeni10

    @yevgeni10

    29 күн бұрын

    Like World of Warcraft or other MMO that uses turns and free camera reset.

  • @CrowCode_
    @CrowCode_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