Freelancer Style Mouse Controls Part 1: Making a Space Combat Sim in Unreal Engine
In this tutorial you will learn another important part of making a space game: controls to fly the ship. There are tons of different control schemes for space games and I will try to make tutorials for each one. Today we are focused on the Freelancer style mouse control where the player's ship chases the mouse position on the screen. We will follow this up with a second tutorial focused on the UI elements of this Approach. I hope you enjoy!
TOC:
0:00 Intro -Showing off a Freelance Control Style
1:45 Editing the FlyingPawn
2:40 Delete the rotation stuff in the Event Tick
3:00 Mouse following rotation blueprint
8:48 Testing out the moust flight
10:10 Adding a deadzone
10:20 Creating a Blueprint Function Library
12:00 Creating the Get Mouse Position from Center function
20:00 Adding deadzone using new function
24:00 Computer Crash!
25:00 Testing the new deadzone / adjusting
25:50 Wrap up - what is next!
This is part of an ongoing series on how to create a space sim in Unreal Engine 4 (and maybe Unreal Engine 4 someday?). Space Sims are a huge genre spanning dog fighting combat shooters to galaxy fairing exploration games.