For cleaner code, dont reference the climb script in your playermovement script, but make a new bool in your playermovement script and reference that in your climbingscript for the exiting state. That way your playermovement script works without the climbscript attached to your player.
@@davegamedevelopment Hey! Can you please make a video on making the Vortex Shield from Titanfall 2 please? For more details, you can search "Vortex Shield in Titanfall 2" on RUclips. Please reply.
Just to be straight forward and honest. You are the best tutorial channel after Brackey's leave. No joke. Quick and straight to the point tutorials with high quality editing. Gj
I’ve recently gotten into learning unity and these videos have been a godsend! Thank you for these guides, and I can’t wait to try this out when I get home
Your videos are short and straight to the point and the visual explanations help a lot! Probably the best first person parkour character controller in free access!
I kept having problems with the Sphere Cast's direction when going towards the wall, as it always was way too far to the right. I managed to find something that fixed it. Here's the fix if anyone is having this similar problem: wallFront = Physics.SphereCast(transform.position, _sphereCastRadius, (Pos.transform.forward - Pos.transform.Right), out frontWallHit, detectionLength, isWall); Just remember to change the variable names to those that you have in your project haha. I couldn't explain how this ended up working too well, and it might be broken in the future but it functions well enough for me right now haha.
Excellent content! Subscribed - fyi, love your state system management, very clean. I think I am going to start doing this same thing for my scripts as well. :)
If someone is having problems with getting stuck on edges on the top of the walls, add a non friction physics material to your player collider, also the non friction physics material on walls can help too, that way you will just slide past the edge.
@@alexx4450 I seem to just get stuck on the wall and I can't move past it, I've changed the radius and speed but I just can't vault over the wall, what could be wrong?
Hi Dave, amazing tutorial! It really helped me out and I really appreciate it! I have just one little thing to ask, do you have more in-depth tutorials that explain precisely how this system works? Oh and one last thing, it's not such a big deal and sorry to bother you... But could you slow down a little bit? I had some trouble understanding stuff. Either way, you are an amazing person! Thanks a lot!
Adding momentum based vaulting would be cooler in my opinion, as it doesn't stop the players momentum and keeps the game "alive". Would you have any idea on how to implement this instead of resetting the players velocity? Great video anyways.
I've been following this tutorial, but I do not want wall running and wall climbing. But now there is a problem that the player gets stuck against the wall and I could not find a good way to fix it. (The internet says using a frictionless ground, but slopes then do not work.) Do you have any idea how to fix this?
Dupicate the capsule collider of the player, then give the second one a slightly heigher range (width), but a lower height. If you now add a frictionless physics material to it, the players body won't have any friction, but the players feet will, which is exactly what you want :D
Hey man great tut...can you make a tutorial on making a karlson style katana...please make it look the same I am making a parkour game so it will help..
pls help. why does my player completely stop when trying to vault over a wall, like it goes up but i just go in the air and cant move plus sometimes i get stuck on the wall.
Assets\Idunno\Huy\Climbing.cs(10,12): error CS0246: The type or namespace name 'PlayerMovementAdvanced' could not be found (are you missing a using directive or an assembly reference?) what is this errror and how to fix it guy
Do you have my player movement script? It's kind of needed for this tutorial, you can use your own movement code, but then the variable is not going to be of type PlayerMovementAdvanced
For some reason, my player is stuck on the wall and cannot climb upwards. I tried adding a frictionless physic material to the player and editing it's collision box but no luck. I have also tried increasing climb speed etc. Does anyone know why this is happening?
I want to keep my walls and ground on the same layer to avoid hastle when it comes to level making, however this makes it so when reaching the top of a wall, if i press space at a certain time the climbing jump and the normal jump combine (I think) causing my player to launch into the air, also if you jump at a certain angle while wall climbing the wall run jump and the climb jump (again, I think) cause you to be launched is there any fix for there issues? :) Edit: for the first issue, the problem is that when you are vaulting onto the ledge and click space those forces combing, I dont know how to fix this but I thought id point it out Edit2: I'm also having issues with sliding up slopes and jumping (I understand the way this works is that its supposed to have seperate ground and wall layers, but I'm just wondering if theres a way to combine the two)
Hi Dave, nice vid as always. There is a little problem after implementing climbing. Now when I slide into a slope and press jump I fly straight into the stratosphere. Maybe the jump force and the climb jump force are combining? If you know the way to fix it I'll really appreciate your help on the issue.
Hello! I was wondering if you were planning to make a tutorial on vaulting over ledges when jumping with this first person controller! If you see this I would love to know if you plan on doing it
Thanks a lot Brac-------- I mean Dave! Helpful as always. What would you suggest to people who arent well versed in C#. What courses would be the best suited to learn C# for specifically game development. Another question i have is, how do you prioritize the game development stages. Is there brainstorming before coding? Do you work on the terrain first, or the fundamentals? Thanks again!
For learning C# I recommend the basic C# Tutorials from Dav-------- I mean Brackeys. And yes, brainstorming is a crucial part to developing any code. I recommend thinking of some ability or function you want to code, then writing down how it should work and then you only need to "translate" what you wrote to C# code. And I always work on functionality first, before I add fancy terrain and graphics :D
How The Hell do you do get that box were you can change Thise things like you do in 4:53 I cant even do a thing in this anymore and i am just trying to learn programming and nothing works. Only way i can get that box is to download the asset and drag it into unity. It will not work when i just copy and paste the text into visual code studio and i save it.
In Unity all Windows can be closed, opened and moved to wherever you like. If you accidentally closed the inspector, just go to Windows -> Inspector and move it anywhere you like :D Or if it's some problem with errors you have, just Download the project file over my discord server and see how everything is set up
Now... how can one apply this to trees and boulders rather than flat falls? In my game the player is a cat living in a cat society that learns advanced fighting and hunting tactics. I would like them to be able to leap from the ground to a tree trunk and, if they have the skill, parkour from that space to another like another tree trunk or a boulder - or barrel into another cat they are fighting after leaping off the tree/boulder in this parkour fashion. I have no idea how to create a game but oftentimes I am too ambitious for my own good XD
If I try to climb a corner if it´s inner or outer, I can climb more than the maxClimbJumps. Is it only me? And when I come in contact with a wall, the player just stops(when not climbing). used this, slope movement and first person movement.
Could you tell me what the orientation Object of yours is? I have none. Ihave Third Person View but only the Player object with cinemachine Camera. I just did only the climbing part but it wont work for me ^^
Could I pleese have the advanced player movement script you used here. I folowed along with your other tutorials but I always mess up somewhere 😐. Your tutorials are awesome by the way.
Can you please tell me how to make the movements like in the game "Project Sparrow"? There is: 1) wall hops 2) dash mid-air 3) bunny hop and you can continuously do this until you lose momentum. Check highlights of "Project Sparrow", it's cummable
I had the same issue, the problem might be because you have a different name for your player movement script, if these are different then change in your code where it says "PlayerMovementAdvanced" to your actual script name (This is found at the very top beside "public class" just in case you were unsure) :D
Ive added this to my script, it all works fine, except when i jump off a wall, my char gets stuck in the ground (cant move anymore) i can still look around but i cannot move or do anything else after i landed.
One tiny bit of criticism is you speak and do things a little bit too fast. I've slowed you down to 0.75 and it doesn't seem like I've slowed you down.
I think using “rigidbody.velocity.sqrMagnitude.z > 0.1f” would be better than registering the w key because some bugs with you already pressing the w key could happen, just wanted to point that out, and thx for being an amazing content creator ❤️
For cleaner code, dont reference the climb script in your playermovement script, but make a new bool in your playermovement script and reference that in your climbingscript for the exiting state. That way your playermovement script works without the climbscript attached to your player.
Friendship has officially ended with Dani's Tutorials, all my homies like Dave now lol. You are amazing! The code is so clean and professional!
Haha rip Dani, thank you so much! :D
@@davegamedevelopment Hey! Can you please make a video on making the Vortex Shield from Titanfall 2 please? For more details, you can search "Vortex Shield in Titanfall 2" on RUclips. Please reply.
Just to be straight forward and honest. You are the best tutorial channel after Brackey's leave. No joke. Quick and straight to the point tutorials with high quality editing. Gj
Thank you so much! Hearing that really means a lot to me!
To be honest i guess he is Brackey's 🤷 maybe I'm wrong
Lol he is Brackery, i tought i was on Brackeys channel first, but its Brackey u can hear it :D
I’ve recently gotten into learning unity and these videos have been a godsend!
Thank you for these guides, and I can’t wait to try this out when I get home
Thank you so much, glad I can help! :D
hows ur progress after 7 months?
Your videos are short and straight to the point and the visual explanations help a lot! Probably the best first person parkour character controller in free access!
Thanks a lot!
I was stuck on a proper wall climbing in my game for so much time like 2 months or so(I'm a noob dev) and you helped so much. Thank you.
Let's gooo! Next tutorial - grappling?
Sometime soon yes, probably not the next one though :D
@@davegamedevelopment ohk no problem! I'm following the whole series step by step! Thanks for these.
I just wanted to say thank you so much, your tutorials are the only ones that work and im really thankfull
Thanks, glad to hear that!
I kept having problems with the Sphere Cast's direction when going towards the wall, as it always was way too far to the right. I managed to find something that fixed it. Here's the fix if anyone is having this similar problem:
wallFront = Physics.SphereCast(transform.position, _sphereCastRadius, (Pos.transform.forward - Pos.transform.Right), out frontWallHit, detectionLength, isWall);
Just remember to change the variable names to those that you have in your project haha. I couldn't explain how this ended up working too well, and it might be broken in the future but it functions well enough for me right now haha.
Man your videos helped me a lot thanks for pushing us closer to our goals with every video
Thanks, glad I could help!
Highest quality tutorials out there, thank you so much sir
Thanks a lot!
All your tutorials are amazing!
Thanks a lot!
Excellent content! Subscribed - fyi, love your state system management, very clean. I think I am going to start doing this same thing for my scripts as well. :)
Thanks a lot, glad I could help!
Thanks for the vid! I'm taking all tips from the pros like yourself for my channel! Your vid editing skills are everything lol 😆 cheers! 🍻
Haha no problem, glad you like my videos! :D
This guy is such a lifesaver!!
Thanks :D
I dont think you understand the level of influence your tutorials have on new unity devs, anyways keep up the amazing work!
Thank you so much, really appreciate it :D
@@davegamedevelopment ofc man! if u want u can check out the videos i posted to my channel of a game i am making using ur tutorials:)
I was trying to make a spider man game but there was no climbing tutorial and you have one your the best thx
Glad I could help! :D
If someone is having problems with getting stuck on edges on the top of the walls, add a non friction physics material to your player collider, also the non friction physics material on walls can help too, that way you will just slide past the edge.
I will try this
Also adjusting the sphere radius helps even better
@@alexx4450 I seem to just get stuck on the wall and I can't move past it, I've changed the radius and speed but I just can't vault over the wall, what could be wrong?
@@AnmolTheSage try changing the air resistence on your player
I love this tutorial.It's really helpful.Thank you so much!!
works really good on my movement code :) thanks!
Amazing tutorial!
Thanks!
straight up G
Thanks!
pls make a tutorial above this project about gun system please + you are a legend 🖤🖤🖤
Yeah I'll probably do something with projectile gun systems soon :D
you are as if god came to earth as a person
you mean Jesus? : D
blackthornprod sounding dude
I do not hear any resemblance lmao 🤨
Thank you Dave
No problem!
Amazing!
Thanks!
hay dave I know this videos like 2 years old but have ya seen the new unity 6, it looks fire. (also ty for your tutorials)
Hi Dave, amazing tutorial! It really helped me out and I really appreciate it! I have just one little thing to ask, do you have more in-depth tutorials that explain precisely how this system works? Oh and one last thing, it's not such a big deal and sorry to bother you... But could you slow down a little bit? I had some trouble understanding stuff. Either way, you are an amazing person! Thanks a lot!
Adding momentum based vaulting would be cooler in my opinion, as it doesn't stop the players momentum and keeps the game "alive". Would you have any idea on how to implement this instead of resetting the players velocity?
Great video anyways.
Actually started working on this today, maybe I'll upload a tutorial sometime soon :D
@@davegamedevelopment Glad to hear that :)
Keep up the great work!
Great video maan, but is there a climb mechanic using character controller rather than rigidbody '?
I've been following this tutorial, but I do not want wall running and wall climbing. But now there is a problem that the player gets stuck against the wall and I could not find a good way to fix it. (The internet says using a frictionless ground, but slopes then do not work.) Do you have any idea how to fix this?
Dupicate the capsule collider of the player, then give the second one a slightly heigher range (width), but a lower height.
If you now add a frictionless physics material to it, the players body won't have any friction, but the players feet will, which is exactly what you want :D
@@davegamedevelopment But when I walk into the wall, I still do get stuck against the wall, do you have any other idea how to fix this.
Hey man great tut...can you make a tutorial on making a karlson style katana...please make it look the same I am making a parkour game so it will help..
I'll think about it, thanks for the Idea!
Great can you build it on your movement project
pls help. why does my player completely stop when trying to vault over a wall, like it goes up but i just go in the air and cant move plus sometimes i get stuck on the wall.
Assets\Idunno\Huy\Climbing.cs(10,12): error CS0246: The type or namespace name 'PlayerMovementAdvanced' could not be found (are you missing a using directive or an assembly reference?)
what is this errror and how to fix it guy
Do you have my player movement script? It's kind of needed for this tutorial, you can use your own movement code, but then the variable is not going to be of type PlayerMovementAdvanced
@@davegamedevelopment Where can i find it?
For some reason, my player is stuck on the wall and cannot climb upwards. I tried adding a frictionless physic material to the player and editing it's collision box but no luck. I have also tried increasing climb speed etc. Does anyone know why this is happening?
@jordanpaz7489 did you change the collision layer of the wall? I made that mistake :D
I want to keep my walls and ground on the same layer to avoid hastle when it comes to level making, however this makes it so when reaching the top of a wall, if i press space at a certain time the climbing jump and the normal jump combine (I think) causing my player to launch into the air, also if you jump at a certain angle while wall climbing the wall run jump and the climb jump (again, I think) cause you to be launched is there any fix for there issues? :)
Edit: for the first issue, the problem is that when you are vaulting onto the ledge and click space those forces combing, I dont know how to fix this but I thought id point it out
Edit2: I'm also having issues with sliding up slopes and jumping
(I understand the way this works is that its supposed to have seperate ground and wall layers, but I'm just wondering if theres a way to combine the two)
WHY DO THESE VIDEOS NOT HAVE MORE VIEWS
Haha I don't know, maybe one day... :D
Hi Dave, nice vid as always. There is a little problem after implementing climbing. Now when I slide into a slope and press jump I fly straight into the stratosphere. Maybe the jump force and the climb jump force are combining? If you know the way to fix it I'll really appreciate your help on the issue.
Nvm. Fixed it by adding more restrictions to climb jump.
@@hrize was about to say, as long as the slope doesent have the layermask for wall thats not possible xD
Hello! I was wondering if you were planning to make a tutorial on vaulting over ledges when jumping with this first person controller! If you see this I would love to know if you plan on doing it
Yes I'm probably doing that, even started coding it :D
@@davegamedevelopment Awesome! Can't wait
This is so good i feel bad using it
Thanks a lot Brac-------- I mean Dave! Helpful as always. What would you suggest to people who arent well versed in C#. What courses would be the best suited to learn C# for specifically game development. Another question i have is, how do you prioritize the game development stages. Is there brainstorming before coding? Do you work on the terrain first, or the fundamentals? Thanks again!
For learning C# I recommend the basic C# Tutorials from Dav-------- I mean Brackeys. And yes, brainstorming is a crucial part to developing any code. I recommend thinking of some ability or function you want to code, then writing down how it should work and then you only need to "translate" what you wrote to C# code. And I always work on functionality first, before I add fancy terrain and graphics :D
im having problems with the "public AdvancedPlayerMovement pm;"
error code: The type or namespace AdvancedPlayerMovement could not be found
use the name of whatever came before " : MonoBehavior" on your main script
How The Hell do you do get that box were you can change Thise things like you do in 4:53 I cant even do a thing in this anymore and i am just trying to learn programming and nothing works. Only way i can get that box is to download the asset and drag it into unity. It will not work when i just copy and paste the text into visual code studio and i save it.
In Unity all Windows can be closed, opened and moved to wherever you like. If you accidentally closed the inspector, just go to Windows -> Inspector and move it anywhere you like :D
Or if it's some problem with errors you have, just Download the project file over my discord server and see how everything is set up
Now... how can one apply this to trees and boulders rather than flat falls?
In my game the player is a cat living in a cat society that learns advanced fighting and hunting tactics. I would like them to be able to leap from the ground to a tree trunk and, if they have the skill, parkour from that space to another like another tree trunk or a boulder - or barrel into another cat they are fighting after leaping off the tree/boulder in this parkour fashion.
I have no idea how to create a game but oftentimes I am too ambitious for my own good XD
If I try to climb a corner if it´s inner or outer, I can climb more than the maxClimbJumps. Is it only me? And when I come in contact with a wall, the player just stops(when not climbing).
used this, slope movement and first person movement.
you awesome man thanks a lot i will subscribe and give you like also thanks for the script it is not working but i will fixed thaaaaaanks
Hi one question The first person movement work all so with controller?
hi can I use this if I have not got a player I just use XR organ for vr
Could you tell me what the orientation Object of yours is? I have none. Ihave Third Person View but only the Player object with cinemachine Camera.
I just did only the climbing part but it wont work for me ^^
Hello! Nice tutor!
Also you sound very echoey, I'm sure you know this, but would be nice to fix :)
Thanks, and yeah, maybe I'll need to record in a different room :D
Could I pleese have the advanced player movement script you used here. I folowed along with your other tutorials but I always mess up somewhere 😐. Your tutorials are awesome by the way.
Hey Dave, whenever I press W, my player doesn't seem to vault over the wall, what could be the problem? I've tried changing the settings too
When i get to the top of the wall i just bounce and dont move forward? Can anyone help
what is the orientation Object?
Just an empty gameObject that you create as a child of the player
I know its been 2 years, but I have some issues with launching off the wall after finishing climbing.
Any solutions??
Can you please tell me how to make the movements like in the game "Project Sparrow"? There is:
1) wall hops
2) dash mid-air
3) bunny hop
and you can continuously do this until you lose momentum.
Check highlights of "Project Sparrow", it's cummable
chill out
does this work with the back of the player?
Can you do it please for third person
Hi dave I am trying to use the code but it keeps coming up with an error "the namespace 'PlayerMovementAdvanced' couldn't be found" How do i fix that?
I had the same issue, the problem might be because you have a different name for your player movement script, if these are different then change in your code where it says "PlayerMovementAdvanced" to your actual script name (This is found at the very top beside "public class" just in case you were unsure) :D
Ive added this to my script, it all works fine, except when i jump off a wall, my char gets stuck in the ground (cant move anymore) i can still look around but i cannot move or do anything else after i landed.
Did you solve it? It's happening to me too
It says player movement advanced could not be found 😢😢
when i go to climb a wall i end up flying in the sky how do i fix that
How do i make whatIsWall?
when i implement the climbing my wall running breaks and doesn't work. Anyone help?
Where is the wall running tutorial?
Climbing.cs(49,10): error CS1002: ; expected (my line 49) }
how can i change the amount of time that i can climb to infinite?
climBING
junge bist du deutsch?
Bin in Deutschland geboren ja, wohne jzt in der Schweiz :D
you sound like brackeys🙃 wait.... what if you're the second brackeys?????
Who knows? :D
wait you sound alot like brackeys
One tiny bit of criticism is you speak and do things a little bit too fast. I've slowed you down to 0.75 and it doesn't seem like I've slowed you down.
Honestly, the link gave me a virus and now I dunno what to do.
then you're an idiot and clicked the wrong link. Mediafire has ONE download button. DO NOT click anything else. smh
it dont work :(
I think using “rigidbody.velocity.sqrMagnitude.z > 0.1f” would be better than registering the w key because some bugs with you already pressing the w key could happen, just wanted to point that out, and thx for being an amazing content creator ❤️
Just wanted to say that I have modified your code to add vaulting, and thx 🙏
It says player movement advanced could not be found 😢😢