I'm currently majoring in video game design in uni and our first big project is making a 2D game. I was having trouble getting the Ground Check that was included in our base template working since I've customized about 90% of the files and scripts. This video finally got it working, so I thank you. And thank you for explaining it in a way that we're able to learn from.
Thank youuuuuuuuu!!!! You nailed it!!!! Thank you for creating this tutorial!! Finally, I found a simple way to prevent jumping on ground elements. 🥳🥳🥳🥳👍👍👍👍👊
This video was great! You explained everything in a way I could understand, I please continue to make tutorial videos like these it really helps out beginner game developers like me can you maybe make a video on how to make the player shoot a projectile like a fireball for example? That would be great!
Problem with this collider ground check (at least for me) is that if you collide with more than one ground at the same time (which should be normal in platformer games) and you exit collision with one of them, grounded variable is gonna be set to false even though you may be on the ground if that makes sense. I fixed it by using OnCollisionStay2D in place of OnCollisionEnter2D, though I would assume OnCollisionStay2D is not much performant as it is called each frame I'll let you guys know if I'll come up with something better
i have an issue in the ray cast method , in the collider ground check method the player is jumping properly but as soon as I used the raycast method the player is not jumping anymore , plss help me
I don't understand such a commonly used method. Why doesn't Unity make it a built-in method? Godot has the on_the_floor method for detection, and Unity has developed for so many years and still requires manual detection every time.
dude, can you please go even faster? or even faster than that? as a beginner, I can tell you are a bit too slow. you know, the faster you click all the tabs, buttons, use all shortcuts etc, the faster you explain things, the better it is. faster! it doesn't matter people have to rewind the video here and there, because they might have missed the millisecond you used to click or explain something. that does not really matter. go faster! go challenge the speed of light.
I'm currently majoring in video game design in uni and our first big project is making a 2D game. I was having trouble getting the Ground Check that was included in our base template working since I've customized about 90% of the files and scripts. This video finally got it working, so I thank you. And thank you for explaining it in a way that we're able to learn from.
yo do you go to murdoch cause same LMFAO
@ no, Boise state
I just want to say that this video was amazing! The quality was on point and you explained it very well. Keep Going!
I was looking for a way to this for hours, and you helped me in just 5 minutes. Thanks so much!
Same
I really like your indepth explanation. Looking forward to more videos :)
Thank youuuuuuuuu!!!! You nailed it!!!! Thank you for creating this tutorial!! Finally, I found a simple way to prevent jumping on ground elements. 🥳🥳🥳🥳👍👍👍👍👊
When i change boxsize values it is not showing the gizmos lines
This video was great! You explained everything in a way I could understand, I please continue to make tutorial videos like these it really helps out beginner game developers like me can you maybe make a video on how to make the player shoot a projectile like a fireball for example? That would be great!
Everyone is doing it with collision which never works for me, thank you for showing 2 methods (Raycast the one works for me), thank you a lot!
I don't know why, but when I use the collider method and walk into a corner, the grounded variable chanegs to false and never changes back
god bless me recommend ur youtube channel
Problem with this collider ground check (at least for me) is that if you collide with more than one ground at the same time (which should be normal in platformer games) and you exit collision with one of them, grounded variable is gonna be set to false even though you may be on the ground if that makes sense.
I fixed it by using OnCollisionStay2D in place of OnCollisionEnter2D, though I would assume OnCollisionStay2D is not much performant as it is called each frame
I'll let you guys know if I'll come up with something better
Yep, which is also another reason I prefer the second method, raycasting
@@morebblakeyyy I'll try it thanks, I looked up few different tutorials but this the best one I found on the topic. Thanks for the content
I'm using unity's input systems for my jump how can i adapt this
Nice tutorial. Thanks!
Is there a way for the boxcast to detect everything, not just things that have the "ground" layermask?
I really like your explanations! Keep it up, I can't wait for the nex part 👍
i have an issue in the ray cast method , in the collider ground check method the player is jumping properly but as soon as I used the raycast method the player is not jumping anymore , plss help me
Is it possible to collider and raycast at the same time?
this saved me a lot of hours slamming my head against the wall lol, much appreciated :)
hey i was adding some other things and now my castDistance box is being shown in the game, how can i fix this?
i activated the gizmo in game view smh, im so silly but grateful i found the solution thank the lord lol
It happens :p
Thank you
hey so I'm tryna make pacman and like great up and down but the problem is how do i have it testify for the side of the box
Great tutorial! Thank you!☺
Thanks so much! A wonderful help.
could you do a tutorial on chaarcter customization? thank you!
I like your tutorials keep it up :D
I got this error: Assets/Controller.cs(54,22): error CS0117: 'Physics2D' does not contain a definition for 'Boxcast'
nvm i just forgot to capitalize "cast"
theres a way to make CastDistance for the X and not only for the y?
Yes swap the 0 and the cast direction
amazing keep up the work!
I don't understand such a commonly used method. Why doesn't Unity make it a built-in method? Godot has the on_the_floor method for detection, and Unity has developed for so many years and still requires manual detection every time.
very good video, thank you
Hey really good tutorial but the grounded check isn’t working for me
Nvm I fixed it
@@Margerrat how Im having the same issue and I cant fix it (I'm using the ray cast method)
bruh I decided to switch to the raycast method, it didn't work and I just wasted my time
thanks man
♥
dude, can you please go even faster? or even faster than that? as a beginner, I can tell you are a bit too slow. you know, the faster you click all the tabs, buttons, use all shortcuts etc, the faster you explain things, the better it is. faster! it doesn't matter people have to rewind the video here and there, because they might have missed the millisecond you used to click or explain something. that does not really matter. go faster! go challenge the speed of light.
You can increase the speed of the video on RUclips
@@morebblakeyyy Keep doing what you're doing, the time you take to fully explain things is perfect for beginners trying to learn.
@@shamangrayson8143 Yeah, I have to totally disagree with that. It's already a bit fast for me, also a beginner.
Again you can change the speed of the video on RUclips, not really possible to find a pace that can help everyone
@@morebblakeyyy Actually, I replied to the wrong person. I’m fine with your current speed since I can make it slower.