How to Easily Fly in Unreal Engine 5 - Beginner Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
what's up guys welcome to new Unreal Engine 5 tutorial today I am going to show you on how to fly very easily it's gonna be a very easy view to follow so let's get started alright so as you can see I have here my third person template so let's go ahead and make this character over here be able to fly so let's go and open up the third person character blueprint or whatever character blueprint you're using in your pride doesn't really matter and what we're going to do is create a new input action so we can basically fly in this case it can be whatever key you want so let's go into third person input actions right click go into input and create a new input action let's name this e a y a underscore uh just fly doesn't move matter and now we can leave everything as default you save it and close it so now let's go into the collection and now we have to add this specific key into the collection so our player can use it in this case it will be um IA flag and then the key will be whatever you want in my case I'm gonna put for example n okay it doesn't really matter let's go back in here and we press the fly key so we I85 we're going to do is basically put our character movement to be flat so we can see good I got the movement set the mode and we're gonna be I'm going to start plugging this here and this will be line so now our character will be flying and actually this will work right now so if I right now go and press M as you can see I can go ahead and do strange things again I slide as you can see I I'm basically sliding if I go here into slope and I don't fall anymore you know so things are going ahead and working right now but first of all let's go into our character movement component go into fly and change a bit the movement speed so first of all let's make this a bit slower maybe 500 and then the breaking the solution let's put maybe like 2 000 because right now there's a lot of sliding and I do not like that let's see right now yeah this is much better right now it feels better uh I actually I didn't press n okay yeah that feels way better there's still some sliding which is nice to some inertia but enough to be able to control our player maybe we can put this to be uh 1500 remains a bit better so you can play with the values as you want but basically right now we are able to fly but we cannot move you know up or down so let's go ahead and change this so for that let's go ahead and create a new in production let's go here let's right click go into input action this will be EA underscore fly up um and down let's open this and the only thing that we have to change here is the value type and to be an access to the vector D okay this will allow us to move up or down into directions basically because we have two axes so now we can go here and just uh go back into our collection open this up and now you just add it and then this will be up and down or whatever so I'm gonna add two keys here one will be basically uh space and one control okay left control will have a modifier which will be the negate so be negative so go down and a space bar will be already positive as you can see it's very similar to our EA move but for basically going up or down instead so now let's go back into our third person character gonna add this E8 underscore uh fly up and down and now we are only going on triggered we're only gonna go ahead and continue if our player is actually flying so we can get our character movement component and just ask is flying if so we're gonna go ahead and continue I'm gonna add some movement input in this case the wall direction will be our get uh controller get up Vector and plug that there and I'm going to do is to get the action value right click split so now we have the uh you know both separate x's and I'm going to go ahead and plug in the I believe this v y axis okay so let's go and test this out press N I can go ahead and um go here wait sorry should be the X let's go ahead go here now we're normal press M we are flying Ctrl go down as you can see and space go up there we go so what's the x-axis now we can go ahead and go up down or whatever direction we want and it's ending pretty cool and nothing left to do is be able to go back to normal so let's make a branch here I'm going to be exactly the same as is flying okay so I'm gonna copy this Boolean this here and add a not Boolean here so if we are currently not flying We Are Gonna Fly but if not we're gonna go ahead and set the mode to be back to in this case let's say falling so the player will fall until it reaches the ground so now I can press n Go up and then when I press n again I always fall back into the ground and everything will be back to normal great so let's go ahead and quickly add an animation so it will be you know like floating a bit better and not like super plain uh so let's go ahead and drag in our animation in my case I will be linking it in the description you're going to go ahead and load it so in my case of this one just go ahead and drag it into the content browser close this and now we can select the skeleton it will be the SK mannequin okay for Unreal Engine 5 and now we can say import and in a few seconds we have our floating animation here as you can see pretty cool so now let's go into our characters folder mannequins animations and open up ABP many okay not Queen even though you have Quint open many uh because Quinn is a shout so many changes will also be applied in in the queen animation blueprint let's go into the Ning graph go into main states right click when you state there will be flying and now we can connect our Locomotion here and then go back to okay in this case we're gonna have a new variable which will be a line a simple style oh I already have flying since like uh so we have is falling we're not flying okay so it is line there we go it's fine it will be a Boolean and in the arrow from Locomotion to fly I'm going to double click this and make sure that this is true so this line will continue and the other one it will be is flying is not Boolean and now we can go back here so go back into their state let's enter in the flying and search for flying or floating uh animation plug it in select it and make sure this is a loop animation is on so now it's flying is on as you can see if I take it it will be flying and deactivate it will be back to normal so let's go into the bend graph add a new PIN and in this case we're gonna go ahead and get the character movement component so we're going to get the movement component get is flying wait sorry it is it's playing right there he goes flying and now I'm going to be setting this variable depending on that okay there we go so now I can go back into our play mode and I can go ahead and press n I'll be fine with animation go up go up or down to the control space what's the real one then press and again go back to normal with all of the animations so that's it guys if you found this so helpful a religion give a live video And subscribe to my channel before I pause to be available in my patreon and YouTube membership check it out join my Discord server follow me on my socials and now yes it's all I said bye bye foreign [Music]
Info
Channel: Gorka Games
Views: 8,715
Rating: undefined out of 5
Keywords: games, videojuegos, unreal engine, unreal engine 5, ue5 fly, tutorial, quixel, megascans, unreal engine player fly tutorial ue5, ue5 float tutorial, ue5 flying tutorial, how to make flying mechanic in unreal, unreal engine 5 fly character, ue5 fly animation
Id: 8hih2oyR8n8
Channel Id: undefined
Length: 8min 30sec (510 seconds)
Published: Wed Aug 09 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.