A while ago I created a tutorial on how to create and RTS Style Camera Movement with Edge Scrolling. This tutorial seems very popular. Yesterday (2nd Dec) I ended up reopening the projected files. After playing with the controls I have an idea to improve it. Today, I present to you a download that can be installed as a project template.
You can find the download link on my blog, instructions on how to install the project as a template are also include in the download zip. Just read the “read me”.
So whats in this template?
When you create a new project using the template you will get 4 blueprints and a default map (used to set the GameMode). The 4 blueprints are GameMode, Player Pawn, Player Controller & a HUD blueprint.
The blueprints are set up to allow the player to move using ASWD (configurable) as well as edge scrolling. The speed in which the player edge scrolls is based on the mouses cursors distance from the center of the screen. This means the closer to the edge of the screen the cursor is the faster they player will move (Includes a configurable in the HUD BP to set a constant move speed). Other controls include rotating the camera by holding the right mouse button and move the mouse, as well as a zoom feature using the wheel on a mouse.
I’ve tried to annotate the blueprints so they can be used as a means of learning but more work is required to explain everything well enough. If you have any sections of the blueprints you would like more explanation for just let me know.