Unreal Engine 5 Tutorial - How to make Double Jump Ability!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello guys welcome back to my videos today I'm gonna be showing you how to make a double jump uh mechanic and RL engine as you can see here's the third person character over here this works in almost every template you can use first person or third person the third person is what I'm actually using first of all you need to go to the third person blueprint here that's BP is a person character yes this one when you open the first I mean the third person character you will have these things who will not have this thing I'm gonna like drag it away this is from my previous tutorial I'm just gonna leave it like this and here is jumping right now I don't want to uh this this is jumping double jumping mechanic is just gonna work on normal jumping I'm not gonna try to do the input touch inputs and now when someone just jumps like that you need to make it so that you can jump again and while you're in mid-air like that and then and then yeah that's all like you can jump infinitely of course and now you increase a variable called can double jump [Music] like that and when when can you double jump is like when you are when you are in the sky like you are falling down and and you haven't like pressed space to jump again so and in order to do this we need to get the character movement over here and do is falling this one so we need to check if the player is in the sky falling or something like that we need actually first we need to compile this and make the can double jump variable to true we need to set the default to true so we do this and we type in and like that and can double jump like this we create a branch over here like this and um after the when you press jump over here to attach this and when you press the jump again like this we need to turn off double jump like that and then we need to do launch character launch character here we go now we have this and we do Z override this will make it so that it will make it will cancel out the the vertical velocity of the player and like set the velocity to whatever the number over here is so I I want the jump Z to be exactly the same as the the strength of the normal jump so let me copy the character movement over here this and you can drag it from here also we type in jump Z velocity and attach that to launch Z and now this could work yes let's make like a sound effect when you jump when you do the second when you do the double jump the second jump I don't know let's put this let me hear some sounds I'm gonna do something from the engine is like process player Q this one you can list everyone has this so these sound effects it's like built in in the engine so when you jump you would do this first because you when you first jump you are not uh falling through there but you can still use the double jump so you just jump normally and then you press space again and you see because you are like falling you jump again mid-air and plays the sound that's all so I'm gonna change this jump input with double jump okay now let's see here when I like walk around see I have double jumps here I have a double jump over here but no I can't use it anymore because as you can see when I when I press jump I disable can double jump because because you don't want to infinitely jump it's a double jump not infinite jumps so we want to reset reset the double jump every time when you land so it's right now it's simple we do uh on on land on land like this event on landed we do can double jump will be true like that [Music] Also let's add a particle two to make it like more visible let's add let's do spawn particle first at location yes we do get actual location you can put it at any location you like I'm not sure which look if I do get active location with it do in the center or at the bottom over here I'm not sure actually I think this is in the center okay we do an explosion effect I don't know I just give it an explosion effect you can put any effect you like yeah see here's the double jump so that's basically it for the double jump uh it's really simple thing to do this doesn't require a lot of knowledge I mean it's just a couple of like extensions to our jump uh inputs we did to we used so that's all there is thank you guys so much for watching hope you guys learned something and see you guys in the next video goodbye
Info
Channel: Ali107
Views: 8,138
Rating: undefined out of 5
Keywords: Unreal, Unreal Engine, Engine, Game, Game Engine, Tutorial, Unreal Engine 5 Tutorial, Ali107, How to make..., Unreal Engine 5, Double Jump, Jump, Explosion
Id: nDWwnukxqPI
Channel Id: undefined
Length: 5min 46sec (346 seconds)
Published: Tue Sep 13 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.