Your style of coding in these tutorials are very impressive, I would've never thought of using boolean variables to do this, normally I would use integers and have them count the jumps. Amazing video brother!!!
Super helpful, loving your tutorials and content!! I do have a question though, and that is if I'm using coyote time and jump buffering, how would I implement this double jump?
Hey! if you wouldn't mind would you do a tutorial on how to make a jump like in Celeste, in which you can press jump before you reach the ground and it still goes through when you do? I think it would be super helpful for a lot of us!
This does work but I want to set a power up which will grant me double jump and can be used on every scenes after that instead of making it always active on the player. If you can make a video on that, Thank you in advance :3
hey I have a suggestion for a video! can you make a tutorial for wall jumping? Because I've been trying to add wall jumping to my game for a long time now and tutorials I find don't seem to work, I'd really appreciate you making it! I understand if you can't though. Keep up the good work!
I was stuck for awhile notice that in the If statement that sends double jump to false that he is using the method GetButton() and not the more common GetButtonDown(). That is what fixed it for me: if (IsGrounded() && !Input.GetButton("Jump"))
great vid, but how could you implement this so you are able to double jump from wall too ? i looked your walljump tutorial also but somehow i cant combine this doublejump with walljump
So whenever I write a line of code with "isGrounded" in it, it says it doesn't exist in the current context, so I wrote the line "void isGrounded() {}", and after I did that, I typed the line "if (isGrounded() | | doublejump)", it says that the operator '| |' cannot be applied to operands of type 'void' and 'bool'. And even when I put operator "&&" in the line "if (isGrounded() && !Input.GetButton("Jump"))" it says the same thing about '&&', so what do I do about the isGrounded problem?
In my project the ground layer check just dosent work i can set the ground layer to everything i want and i can just jump every time you can just double jump how ofthen you want
can you help me I set the jump button to "W" and wrote a code so that double jump activates once the player is in the air and now whenever I hit the "W" button it takes like really less time for the player to reach the air and double jump subtracts in fraction of second and the player cannot do double jump after that. What do I do? If you are interested I can send you the code in discord
I know this video is old but I was wondering why we have to set doublejump = !doublejump instead of just setting it to false? I'm confused as to why that doesn't do the same thing.
@@bendux I get that but why? I starts off as just true, and then you set it to the opposite value which should be false right? I just don't understand where the difference is coming from.
Alright, I figured it out. Instead of setting it to false, we can set it to true and it will simulate the same logic. I just assumed for some reason that c# defaluted booleans to true, not sure why. Also, even if it did we still wouldn't want to set it to false anyway because then we couldn't double jump. Alright, thanks for the help.
Hello, I really like your videos it helped me a lot with my unity project but I want to ask something in the video that you teach us how to make split-screen in unity you already had 2 controllable players every other video I watch about local multiplayer you had to move the controller to add a player but that doesn't work with the fighting game that I am making so can you make a video about the local multiplayer?
copied the code and well i can infinitely jump soooo (also i only want 1 jump btw i have really been struggling to get it as a begginer hope u can help)
why i copy it and paste and hit play i got more than +999 eror with the same eror is UnassignedReferenceException: The variable animator of pm has not been assigned. You probably need to assign the animator variable of the pm script in the inspector. UnityEngine.Animator.SetFloat (System.String name, System.Single value) (at :0)
It actually makes me mad how simple this was to implement. These tutorials are great man!
Just dont give up man, YOU CAN DOUBLE JUMP. Don’t let a concussion discourage you :-)
Haha...good one🤣
Only true legends can do it and he truly IS a legend.
haha
@@neilaszemgulys6754 so he can indeed do it!
Your style of coding in these tutorials are very impressive, I would've never thought of using boolean variables to do this, normally I would use integers and have them count the jumps. Amazing video brother!!!
Why am I just discovering this goat! Instructive, short, and well-edited videos topped with a great sense of humor. I am just impressed!
This tutorial is gold very simple and short i was also trying to make the short jump and got it here as a bonus !
Excellent video, quickly getting to the point and the code works really smoothly, keep up the nice work!
Very elegant solution, thank you man!
Super helpful, loving your tutorials and content!! I do have a question though, and that is if I'm using coyote time and jump buffering, how would I implement this double jump?
We have a solution for that on our Discord server. Feel free to join!
awesome short and to the point video!
GREAT TUTORIAL BROTHER!!!
Love your videos, great job!
THANK YOU, SO MUCH! EXACTLY WHAT I WAS LOOKING FOR
Bro the joke at the beginning was that good amazing video! (i didnt watched it yet but i just know)
Thank you!!
The joke you made in the start was the reason i sub keep up teh work lol
It works perfectly thank you so much !
another pogchamp tutorial my guyyy
I put a like instantly after 14seconds when I heard the hospital story lol
Thankyou so much 💓 i have learned double jump method Thankyou 😊✌
Hey! if you wouldn't mind would you do a tutorial on how to make a jump like in Celeste, in which you can press jump before you reach the ground and it still goes through when you do? I think it would be super helpful for a lot of us!
I already have a video about coyote time and jump buffering on my channel.
@@bendux Yea I found it just after I commented I'm super sorry, thank you for giving the community such awesome tutorials!
ty for this amazing tutoriel ! 😄
This does work but I want to set a power up which will grant me double jump and can be used on every scenes after that instead of making it always active on the player.
If you can make a video on that, Thank you in advance :3
Join our Discord server, and let's solve your problem together!
thanks! even tho this is my first time watching you, i subscribed and liked, tutorial helped!
Another great video just when i need it:)
Hey man, you really helped me here!!!
Bruh that was quick
hey I have a suggestion for a video! can you make a tutorial for wall jumping? Because I've been trying to add wall jumping to my game for a long time now and tutorials I find don't seem to work, I'd really appreciate you making it! I understand if you can't though. Keep up the good work!
I definitely want to make a video about wall jumping in the future.
I was stuck for awhile notice that in the If statement that sends double jump to false that he is using the method GetButton() and not the more common GetButtonDown(). That is what fixed it for me:
if (IsGrounded() && !Input.GetButton("Jump"))
omg same problem, thank you brother
when using this, my player wont jump half the time, i have to press the button a good few times before it works
Love you
Thank you! :D
He's back Let's goo
Best vid in town
ello, great video mate! May I know what video did you do the animation for the player? and how can I make the snowy effect
I learned everything I know about animations from Brackeys. I definitely want to make a video about Unity's particle system in the future.
@@bendux Thanks so much mate, I'm looking into it :D
you got me laughing bro 0:04
great vid, but how could you implement this so you are able to double jump from wall too ? i looked your walljump tutorial also but somehow i cant combine this doublejump with walljump
We have a solution for that on our Discord server. Feel free to join!
So whenever I write a line of code with "isGrounded" in it, it says it doesn't exist in the current context, so I wrote the line "void isGrounded() {}", and after I did that, I typed the line "if (isGrounded() | | doublejump)", it says that the operator '| |' cannot be applied to operands of type 'void' and 'bool'.
And even when I put operator "&&" in the line "if (isGrounded() && !Input.GetButton("Jump"))" it says the same thing about '&&', so what do I do about the isGrounded problem?
Would you like to show me your code on Discord?
@@bendux sure
instead of 'void', write 'bool isGrounded()'
I have the same problem. Did you solve it?
I really like your tutorials could you upload more videos and more often ? Please !!!!
I'm currently working on a new tutorial.
Hey man i kinda dont understand the syntax for the Vector2 when you put the doubleJumpingPower
learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/conditional-operator
Please can u make a tutorial abt the snow flakes in the back??
I definitely want to make a video about Unity's particle system in the future.
Do you have a video showing how to change character animations when active compared to static character animations?
like your character when running, it will move its feet
I definitely want to make a video about animations in the future.
How would you do this with the new input system?
We have a solution for that on our Discord server. Feel free to join!
Would there be a way to where if I walk off of a ledge, I have the jump? Currently I have to jump to activate the ability to double jump.
We have a solution for that on our Discord server. Feel free to join!
In my project the ground layer check just dosent work i can set the ground layer to everything i want and i can just jump every time you can just double jump how ofthen you want
Would you like to show me your code on Discord?
How does this work with Coyote timing and buffering jumps? I can't seem to get all of them to work at the same time
We have a solution for that on our Discord server. Feel free to join!
is there a way to limit the double jumps, i have a problem where when the player reaches its apex it will give it a second jump.
Would you like to show me your code on Discord?
why does the github servers HAVE TO BE DOWN error 500
Can you do a video about croching and dashing as im having trouble finding a good tutorial on it
Crouching and dashing are both on my list for future videos.
Cool
will this also work for Character controllers or just rigidbodies
What do you mean?
@@bendux Can this script work with Character Controller Component or strictly a Rigid Body Character?
@@Emu- The same principle can be applied to other character controllers.
can i ask from where you have this snow in video?
I made it myself with Unity's particle system.
can you help me I set the jump button to "W" and wrote a code so that double jump activates once the player is in the air and now whenever I hit the "W" button it takes like really less time for the player to reach the air and double jump subtracts in fraction of second and the player cannot do double jump after that. What do I do? If you are interested I can send you the code in discord
Join our Discord server, and let's solve your problem together!
@@bendux OMG sure!!
I know this video is old but I was wondering why we have to set doublejump = !doublejump instead of just setting it to false? I'm confused as to why that doesn't do the same thing.
Setting it to false is not the same as setting it to its opposite value.
@@bendux I get that but why? I starts off as just true, and then you set it to the opposite value which should be false right? I just don't understand where the difference is coming from.
Is it just because it's false by default?
Alright, I figured it out. Instead of setting it to false, we can set it to true and it will simulate the same logic. I just assumed for some reason that c# defaluted booleans to true, not sure why. Also, even if it did we still wouldn't want to set it to false anyway because then we couldn't double jump. Alright, thanks for the help.
what key would I hit to jump
can some one please tell me bc im clicking space but now jumping
Edit > Project Settings > Input Manager
@@bendux thanks it works now
also can you make a enemy tutorial?
@@-._122 I definitely want to make a video about enemies in the future.
@@bendux yes it would be great
also keep up the great work
I'm having a hard time reconciling the double jump after adding coyote time and jump buffering. Anyone else?
We have a solution for that on our Discord server. Feel free to join!
Hello, I really like your videos it helped me a lot with my unity project but I want to ask something in the video that you teach us how to make split-screen in unity you already had 2 controllable players every other video I watch about local multiplayer you had to move the controller to add a player but that doesn't work with the fighting game that I am making so can you make a video about the local multiplayer?
I definitely want to make a video about local multiplayer in the future.
what do you do if you added the coyote time and jump buffering codes
Thanks
We have a solution for that on our Discord server. Feel free to join!
Found it and it worked
Thanks!
@@loopgamer01 i could not find it, can you please help me?
im having trouble getting this to work after setting up coyote time and jumpbuffer
We have a solution for that on our Discord server. Feel free to join!
@@bendux awesome thank you ! those solutions worked perfectly
Didn't work for me - the player can jump indefinitely. And console says: "Parameter "Speed" doesn't exist"
Make sure that your player and the ground are not on the same layer. By the way, there is a link to the source code in the description.
Dj is working, but when he falling from a wall down. i cannot jump
Would you like to show me your code on Discord?
Haha nice another vid
thks
I can’t incorporate this double jump into my existing script and it’s driving me insane
Would you like to show me your code on Discord?
@@bendux yes absolutely!!!
I’d be so flipping happy!!!!
im having trouble , the player jumps too high
Increase the gravity scale of your player's Rigidbody 2D component, or decrease the jumping power at the top of the script.
lmfao double jumping in real life. Can you make a tutorial on that?
how do i add this with wall slide and wall jump
We have a solution for that on our Discord server. Feel free to join!
Anyone else have a problem where the player keeps on jumping when you keep pressing space?
Nevermind, I just forgot to add the ground layer to Ground
I'm glad you were able to fix it.
@@bendux Thank you for your work. It really helps people like me a lot.
copied the code and well i can infinitely jump soooo (also i only want 1 jump btw i have really been struggling to get it as a begginer hope u can help)
Make sure that your player and the ground are not on the same layer.
i got infinity jumping following this
Would you like to show me your code on Discord?
Nice dude. But I hope u make more videos. 2vid / weeks 😆
it didnt work for me and i didnt get any errors
There is a link to the source code in the description.
add animation
What i need to putin animator
You don't need the animator for double jumping.
the jump on my game is not working hahah
even one jump not working hahah
Would you like to show me your code on Discord?
@@bendux yes why not just send you discord link
@@luckysantillan7514 There is a link in the description.
nothing is clear . dislike
why i copy it and paste and hit play i got more than +999 eror with the same eror
is UnassignedReferenceException: The variable animator of pm has not been assigned.
You probably need to assign the animator variable of the pm script in the inspector.
UnityEngine.Animator.SetFloat (System.String name, System.Single value) (at :0)
You don't need the animator for double jumping.
@@bendux yh it took me 2 hours to fix it and its fine
@@loukmankoh1544 I'm glad you were able to fix it.
@@bendux thx man
I ran into a prob can I dm u in discord?
Of course!
@@bendux I DM u yesterday!