How To Wall Slide & Wall Jump In Unity

  Рет қаралды 75,014

bendux

bendux

Күн бұрын

Пікірлер: 332
@SuperSleepyBeepy
@SuperSleepyBeepy Жыл бұрын
Dude you have literally help me build out the base of my character movement. You deserve WAY more subscribers than you currently have
@VaneTheLocal
@VaneTheLocal Жыл бұрын
Definitely
@ДмитрийШаповалов-р5с
@ДмитрийШаповалов-р5с 2 жыл бұрын
A couple more videos and I can make celeste with my own hands. Thank you, friend!)
@VaneTheLocal
@VaneTheLocal Жыл бұрын
I know I'm not bendux, but..good on you!Wish you luck!
@Baj-7
@Baj-7 3 ай бұрын
im actualy making a celeste clone with this code lol
@fillowskyy
@fillowskyy Жыл бұрын
Found your channel today, it's gold. I wanted to make my own platformer, and I saw that you have the tutorials I'm looking for - coyote time, dash etc. Thank you!
@hpgg6232
@hpgg6232 Жыл бұрын
Stumbled across this tutorial while making a game for Game Jam... Once i saw your code structure i doubted everything i knew after 6 months of self-learning. I basiclly deleted my code, wrote down same as you use, tweaked a little bit to work as i initially planned and OH MY GOD now everything is working smoothly, code is readable and has any kind of structure to it. Great tutorial !
@engineergaming3830
@engineergaming3830 6 ай бұрын
yeah honestly self-learning is good but it's alvays good to watch a tutorial once in a while dx
@luckyowl859
@luckyowl859 Жыл бұрын
I hope you continue to make videos! Your tutorials are amazing and very easy to follow!
@VaneTheLocal
@VaneTheLocal Жыл бұрын
YES!
@chrono9503
@chrono9503 Жыл бұрын
I have a few ideas for videos -How to make a level barrier that teleports you back if you fall. Seems simple, just a modified Teleporter Script - How to make a 2D simple gun - Simple 2D enemy - How to have pickups
@bendux
@bendux Жыл бұрын
I've added them to my list. Thank you for the suggestions!
@BreadAckerman
@BreadAckerman Жыл бұрын
@@bendux hell yea i will wait
@Kerem_MertGakadatil
@Kerem_MertGakadatil Жыл бұрын
@@BreadAckerman too
@KnoxinatorDestroyer
@KnoxinatorDestroyer Жыл бұрын
@@BreadAckerman language
@GentleMonkey
@GentleMonkey Жыл бұрын
Dank deinen Videos hab ich einfach das Grundgerüst für ein coolen 2D platformer/runner in nur 7 std geschaffen. Du machst die Videos und Scripts so simpel und easy zu verstehen... Eif der King aller Programmierer. Vorschlag für ein neues Video (Zwar nicht wirklich in deinem Stil aber ich hab trzdm Hoffnung) : Wie man das Grundgerüst für ein RTS 2D Spiel wie Supremacy macht.
@bendux
@bendux Жыл бұрын
I've added it to my list. Thank you for the suggestion!
@GentleMonkey
@GentleMonkey Жыл бұрын
@@bendux You are amazing!
@kheloras4786
@kheloras4786 8 күн бұрын
What a simple and clear tutorial. Thanks for this ! It helps me a lot on my project !
@piespluto402
@piespluto402 Жыл бұрын
Great video! Could you do a tutorial about spawning entities (like enemies) outside of players vision for your next video? It would greatly help me. Also, abolute respect for replying to new comments on your videos! You are one of the best unity tutorial youtubers and it's criminal you don't have more subscribers
@bendux
@bendux Жыл бұрын
I've added it to my list. Thank you for the suggestion!
@piespluto402
@piespluto402 Жыл бұрын
@@bendux Thanks for a quick reply! I love when creators are in touch with ther viewers
@RadishMalan
@RadishMalan 2 ай бұрын
At first some stuff may fail, but once you start reading and remembering what you do and see in this tutorials you'll see success at some point
@mcovar2033
@mcovar2033 9 ай бұрын
A year after posting and this is still super helpful ( especially for people just getting back into game development! ) Thanks for making this :)
@iLikeSnowFoxes
@iLikeSnowFoxes Жыл бұрын
GRAPPLING HOOK NEXT PLZ also great content you get straight to the point and are clear about how these functions work also please keep uploading
@bucksygaming
@bucksygaming Жыл бұрын
If u guys are stick in to the wall try creating a 2d physics material and make friction 0 then add it to the material in collider or rigid body component. great tutorial btw thanks.
@Hardcore0
@Hardcore0 Жыл бұрын
how to do with 3d character?
@bucksygaming
@bucksygaming Жыл бұрын
@@Hardcore0 sry bro I don't know about 3d. May be it's the same not sure tho.
@rayyandarbashi7166
@rayyandarbashi7166 10 ай бұрын
Thank you so much! I was scrambling with the code to see if I missed something, and was left confused when everything was the exact same as the video. You've saved me from countless hours of agony haha, thanks.
@TenmoWatcher
@TenmoWatcher 5 ай бұрын
you are THE GOAT!!!! I was spending a lot of time trying to fix this issue, like a very lot time. I completely forgot there was a friction option, you just made my day sir, thanks o7
@n1pster3
@n1pster3 9 ай бұрын
Great videos, I've been using unity since 2020 and took a year off of it. Just getting back into it, trying to refresh my memory on everything. This was a great tutorial, thanks! I would love it if you could make a video tying in all the movement tricks, such as double jumping, wall jumping, wall sliding, etc. into one neat script. As well as setting up animations for those various actions. Thanks!
@bendux
@bendux 7 ай бұрын
I definitely want to upload a character controller with all the features of my tutorials in the future. Thank you!
@thomasjames1067
@thomasjames1067 Жыл бұрын
Clean code, detailed explanation, great demo! All in all awesome video!
@DavrK
@DavrK Жыл бұрын
Just found out about your channel and im in love with it already. Really hope you make more vids in the future
@PitiITNet
@PitiITNet 2 жыл бұрын
Little fun tutorial! Great job :)
@glowraptor5228
@glowraptor5228 2 ай бұрын
is there any way to add a kick off the wall so that if you hold the directional input into the wall, you go upwards and away from the wall
@itsdonix
@itsdonix Жыл бұрын
Straight To The Point. You're The Best 2D Game Tutorial Maker On KZbin. Keep It Up! Ur Aweasome
@Vladek16
@Vladek16 Жыл бұрын
thanks for those tutorial man, I've followed the 2D movement, dash and this one, and it works perfectly :D !
@davibarbosa7283
@davibarbosa7283 Жыл бұрын
Your tutorial are incredible, it's helping me so much developing my game, thank you! Keep it up! :)
@g.nath0
@g.nath0 Жыл бұрын
Thanks! your helped my thesis work. I wish you success too!!
@monarchdrumandbass8700
@monarchdrumandbass8700 Жыл бұрын
How do you not have more subs! Incredible videos!
@mav1nd_238
@mav1nd_238 2 жыл бұрын
Your tutorials are awesome! Big thanks for them!
@coswic9128
@coswic9128 Жыл бұрын
i love u so much, thank u, u have single handed made my game 100x times better with the movement tutorials
@RickydeCamargo
@RickydeCamargo Жыл бұрын
Hey man, thanks for this series of unity 2d videos. They are very helpful to us beginners. I have a question: In order to have a better and clean coding do you recommend to us to build only a gigantec script with every new hability ? Or is less complicated to create a script for every new skill ? I mean, a script just for walk, another one just for jump, etc etc. And we can manage easily on unity ? Thank you.
@Bryannathestinkyfrog
@Bryannathestinkyfrog Жыл бұрын
I'm still learning myself but I thought I could give my answer to your question. I use unity and when I create a script for my player's movement, I usually call it playerMovement and put all player movement inside that script. That includes basic movements using WASD and any jumping for the game. I haven't made a game yet with special abilities for the player but depending on the ability, you could put it in playerMovement or into another script. Something like double jump or dash, I'd probably put into my playerMovement script though. It isn't hard to manage as long as your code is clean and your variable names are easy to understand. I hope that helps if you haven't already come to a solution/answer 😊
@lakshya2204
@lakshya2204 2 ай бұрын
the matf.clam in sliding is causing the lagging issue so if you don't want it just use constant value
@winter2021inmemory
@winter2021inmemory 2 жыл бұрын
tnx bro, u made my day with this vid, i will try it tomorrow
@Blamethemsm
@Blamethemsm 10 ай бұрын
I wish you would combine all of these into one where you can double jump, dash, wall jump, and wall slide.
@bendux
@bendux 7 ай бұрын
I definitely want to upload a character controller with all the features of my tutorials in the future.
@turtledude5749
@turtledude5749 2 жыл бұрын
Good vid really useful your vids are so good
@turtledude5749
@turtledude5749 2 жыл бұрын
He deserves more subs🎉
@greatvideos1665
@greatvideos1665 2 жыл бұрын
Good please create more unity videos
@Kerem_MertGakadatil
@Kerem_MertGakadatil Жыл бұрын
When you upload new unity tut? And How to make animated characters from Tuts you uploaded
@bendux
@bendux Жыл бұрын
I want to upload a new tutorial soon, and there will definitely be a video about animations in the future.
@ElWuthrich
@ElWuthrich Жыл бұрын
Acabo de encontrar tu canal, espero que sigas haciendo tutoriales, ya me suscribí !!!!
@meltedistaken
@meltedistaken Жыл бұрын
Hey, I was wondering if you could make a tutorial on how to make movement with acceleration. My movement feels very stiff and I want to have it to where if I start holding "D," it takes some time to reach maximum speed. Or when I turn around and instantly start moving the other direction, I want it to take some time.
@bendux
@bendux Жыл бұрын
Try Input.GetAxis instead of Input.GetAxisRaw.
@meltedistaken
@meltedistaken Жыл бұрын
Thank you!
@shork-c2l
@shork-c2l Жыл бұрын
ty it work but i cant dash now can u help?
@bendux
@bendux Жыл бұрын
It probably has something to do with the order of execution in your script.
@trungnghianguyen2993
@trungnghianguyen2993 Жыл бұрын
Your videos are very useful with me. Thank you very much.
@UnderArea51
@UnderArea51 Жыл бұрын
Mr.Bendux, how would you go about implementing roguelike - turn-based movements? The player moves - a monster moves?
@ahmadbagheri5430
@ahmadbagheri5430 4 ай бұрын
Thanks for the video but one question ? did you use isWallJumping in any condition ? I cant see any.
@bendux
@bendux 3 ай бұрын
I even used it twice.
@condork1
@condork1 Жыл бұрын
Can you maybe show us how to do animations aswell? Your tutorials are super easy to follow
@bendux
@bendux Жыл бұрын
There will definitely be a video about animations in the future. Thank you!
@naymod2717
@naymod2717 2 жыл бұрын
Thanks mang
@RainbowMusicDisc
@RainbowMusicDisc 5 ай бұрын
im new in unity and my dream is to make a platformer. it become reality. big thanks to you for making this short, Obviously, and fun tutorials. and here idea for tutorial: boss fight!!! and maybe make a playlist for this tutorials? its the best tutorials ive ever seen. please, keep doing this mythic tutorials for me, and for everyone else. i just found your channel a few hours ago. youtube, this chnnel need to get a big golden play button. please like this comment to make him see this!!!!!!!!
@bodacious617
@bodacious617 Жыл бұрын
I love your videos so much!!!
@tah4mis
@tah4mis Жыл бұрын
Perfect! Thanks a lot bro!
@Kerem_MertGakadatil
@Kerem_MertGakadatil Жыл бұрын
yeni video nerde
@blockboyeytu7824
@blockboyeytu7824 Жыл бұрын
Can you make a tutorial for adding animations to these?
@bendux
@bendux Жыл бұрын
I definitely want to make a video about animations in the future.
@luccabobucca
@luccabobucca 2 ай бұрын
couldn't I just reuse the Ground Layer? Or would that cause complications down the line?
@Natycik
@Natycik Жыл бұрын
Tried your method, but it's not working because of colliders. Basicly, if the player is aganst a wall and "runs" into it, the player stops moving and doesn't fall (y velosity is 0). Your player object seems to not collide with objects in that way, I'm not sure what you did to prevent this.
@bendux
@bendux Жыл бұрын
Create a Physics Material 2D, set the friction to zero, and add it to your player's Rigidbody 2D component.
@bobjoe132
@bobjoe132 Жыл бұрын
I love these tutorials, although i think it would be nice to learn what is happening, so i can replicate it on my own.
@wanhell9745
@wanhell9745 Жыл бұрын
Thank you for your tutorials! They are amazing! Could you make a tutorial about slopes please?
@bendux
@bendux Жыл бұрын
I've added it to my list. Thank you for the suggestion!
@sunbob_
@sunbob_ Жыл бұрын
Great tutorials. Is there an easy way to have a certain animation while sliding down the wall until you hit the ground or jump?
@bendux
@bendux Жыл бұрын
I definitely want to make a video about animations in the future.
@realdestroyer9516
@realdestroyer9516 Жыл бұрын
Thanks brother it helped me out a lot .Can u please make a video abt enemy ai
@bendux
@bendux Жыл бұрын
I've added it to my list. Thank you for the suggestion!
@Amber_CEO
@Amber_CEO Жыл бұрын
An idea: A way to tag an object as being able to be wall jump'd on
@Rivaldix12
@Rivaldix12 4 күн бұрын
When i type this line; if (isWalled() && !grounded() && xInput != 0f) it says "Non-invocable member 'PlayerMovement.grounded' cannot be used like a method." Can you please help :(
@alfiehine2931
@alfiehine2931 Жыл бұрын
When I tested the sliding mechanic before implementing the jump, it worked perfectly. But after I coded the jumping the wall sliding stopped working for me, do you know of why this could be?
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@michaelhill9
@michaelhill9 Жыл бұрын
Hey, I was able to combine your wall-jumping tutorial and you dash tutorial, and I need a way to make the same thing for player 2, since I need different parameters or something. Any way to fix that?
@bendux
@bendux Жыл бұрын
What's the problem?
@tylerhuff7394
@tylerhuff7394 Жыл бұрын
This code works great for vertical jumping up walls, but it doesn't seem to be pushing the player off the wall properly. If I have the player sliding down the right hand side of a wall and press jump without holding down a movement direction then they will occasionally get a small bit of movement before resetting their Rigidbody velocity.x back to 0. In this video are you actively pressing in the direction opposite the wall when you jump off? I think the problem is tied to update refreshing the velocity based on horizontal.
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@nikomu7256
@nikomu7256 Жыл бұрын
Great Tutorial!!!!!!!!!!!!!!
@zynnonP
@zynnonP 2 жыл бұрын
Could you maybe make a tutorial on a top down dash? I've seen your platformer dasv but i can't seem to implement in vertically, could you maybe help me with that please?
@Coleslaw333
@Coleslaw333 2 жыл бұрын
You could use a bool and increase the move spped for a short amount of time like 0.2 seconds with an Enumerator like If(whatever key you want pressed & & candash) { StartCoroutine(Dash() ) ; Candash = false; } IEnumerator Dash() { Move speed = whatever. Make it high enough; Yield return new WaitForSeconds(0.25f); Movespeed = whatever it was before; Yield return new WaitForSeconds(however long) ; candash = true; }
@zynnonP
@zynnonP 2 жыл бұрын
@@Coleslaw333 i'll give it a shot later and let you know if it worked
@bendux
@bendux 2 жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@nemaziina
@nemaziina Жыл бұрын
can you make tutorial for particles (sry bad english 😅) your tutorials are AWESOME and very helpful👍
@bendux
@bendux Жыл бұрын
I definitely want to make a video about Unity's particle system in the future. Thank you!
@mrflopa3684
@mrflopa3684 2 жыл бұрын
Good Job !
@ongstudio5849
@ongstudio5849 Жыл бұрын
You.Are.Awsome!
@HarmeetSingh-nu5tt
@HarmeetSingh-nu5tt Жыл бұрын
Hey mate, love your videos. I have a couple of suggestions if you dont mind. player swinging on ropes and player using a grapple hook. That would be great thanks.
@bendux
@bendux Жыл бұрын
I've added them to my list. Thank you for the suggestions!
@biencuongngongoc3873
@biencuongngongoc3873 Жыл бұрын
thank you very much
@hipsterelephant2660
@hipsterelephant2660 Жыл бұрын
Thanks!
@KIRya055-Miass
@KIRya055-Miass Жыл бұрын
You have good vids, I like them. And the code is good. Your content is useful to me, even though I am Russian, thank you.👍
@kuruttakao4363
@kuruttakao4363 2 ай бұрын
i have a question: why use Mathf.Clamp instead of just fixing it to -wallSlidingSpeed ?
@lakshya2204
@lakshya2204 2 ай бұрын
don't use it ,it cause the lagging issue while sliding so just use constant value
@SalikShorov
@SalikShorov Жыл бұрын
Thank you for the video. For some reason my player starts to slide up when it’s on the top half of the wall and slides down when it’s on the bottom half. I don’t if anyone else is having the same issue.
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@meltedistaken
@meltedistaken Жыл бұрын
Hey, I was wondering how I could use acceleration and momentum with the wall jump, as it feels stiff. As soon as the wall jump ends, I can start moving the other direction without speeding up.
@bendux
@bendux Жыл бұрын
Try Input.GetAxis instead of Input.GetAxisRaw.
@HellhogGaming
@HellhogGaming Жыл бұрын
the problem with assigning the "wall" layer to the walls is that they will not count as ground if you stand on top of them and therefore you wont count as grounded when on top of a wall. this is no good if the wall is also part of the same object that is a floor.
@bendux
@bendux Жыл бұрын
2:35
@KatelynCollins225
@KatelynCollins225 Жыл бұрын
I'm pulling my hair out here, thanks to my terrible spaghetti code. I followed your tutorial(really great btw,) the best I could given my existing code, and whenever the wall jump duration runs out of time, the player just abruptly stops mid air and falls. Any idea on why this is happening? Thanks!
@bendux
@bendux Жыл бұрын
What should happen instead?
@KatelynCollins225
@KatelynCollins225 Жыл бұрын
@@bendux the wall jump should have continued. I ended up completely rewriting the code, because it was a huge and terrible mess.
@bendux
@bendux Жыл бұрын
@@KatelynCollins225 It's a good idea to refactor your code from time to time.
@physiix055
@physiix055 2 жыл бұрын
YOUR BAAAAAACCCCCKKKK
@CATaclysmOg
@CATaclysmOg 4 ай бұрын
I tried your code and the wall slide doesn't work in my case I do not know what could be the issue. Also the wall jump will not apply the horizontal force away from the wall when wall jumping
@armandasaukscionis2558
@armandasaukscionis2558 3 ай бұрын
by any chance is it only on a wall that is to the right of the character?
@CATaclysmOg
@CATaclysmOg 3 ай бұрын
@@armandasaukscionis2558 both sides unfortunately
@bendux
@bendux 3 ай бұрын
Create a Physics Material 2D, set the friction to zero, and add it to your player's Rigidbody 2D component.
@CATaclysmOg
@CATaclysmOg 3 ай бұрын
@@bendux thanks but I already done that
@bendux
@bendux 3 ай бұрын
@@CATaclysmOg I advise you to compare your script with the source code in the description.
@allanaraujo2157
@allanaraujo2157 7 ай бұрын
thank you
@WheatTheG
@WheatTheG Жыл бұрын
how do i add animations to this script such as Jumping animation wall jumping and running
@bendux
@bendux Жыл бұрын
I definitely want to make a video about animations in the future.
@noelshow9997
@noelshow9997 Жыл бұрын
Very good video Thank u soo much :))
@Mathi5000
@Mathi5000 6 ай бұрын
i used the ground and wall layer as one layer. lets hope it doesnt break anything
@patriksdzenis6179
@patriksdzenis6179 2 жыл бұрын
You are the best!
@scoop9551
@scoop9551 Жыл бұрын
there is one problem, if you go on top of an object with the layer Wall, it won't have the ground layer so everything checking for isGrounded will be bugged, any solutions for that please ?
@bendux
@bendux Жыл бұрын
2:35
@yttriun
@yttriun 3 ай бұрын
your tutorials are grat but i have managed to make you able to jump when you not on the ground do you have any idea what went wrong ?
@bendux
@bendux 2 ай бұрын
You probably set up the layers incorrectly.
@yttriun
@yttriun 2 ай бұрын
@@bendux thanks
@YoungJayFlow
@YoungJayFlow Жыл бұрын
Hello, whenever I am sliding on the wall and I frequently press the jump button, I've noticed that the player character jumps vertically along the wall instead of performing the intended action.
@bendux
@bendux Жыл бұрын
There is a link to the source code in the description.
@emilian_spielt300
@emilian_spielt300 2 жыл бұрын
The Double Jump and the walljump dont work together, i mean it work but i can jump infinite on the wall. any fixes?
@bendux
@bendux 2 жыл бұрын
Would you like to show me your code on Discord?
@emilian_spielt300
@emilian_spielt300 2 жыл бұрын
I fixed it! your tutorials are really nice
@bendux
@bendux 2 жыл бұрын
@@emilian_spielt300 I'm glad you were able to fix it.
@McDuffieCrew
@McDuffieCrew Жыл бұрын
@@emilian_spielt300 how did you fix it
@lazougre4229
@lazougre4229 Жыл бұрын
I'm so sorry, I'm fliping my player by rotating it on the Y so what do i do when setting the WallJumpDirection ? Thnx
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@Wattsy0769
@Wattsy0769 Жыл бұрын
Hi, I've been following your tutorials, like your player movement, and dash tutorial, and I've now implemented the wall slide and jump, and now the dash Isn't working and, neither is the wall jump. I've gone back through the video a few times but I'm pretty sure I have it word for word. Does this code clash with the existing code? And do you know a possible fix?
@Wattsy0769
@Wattsy0769 Жыл бұрын
I have found out its something in the Wall Jump Section that's breaking all the other code, the wall slide seems to work fine.
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@Wattsy0769
@Wattsy0769 Жыл бұрын
@@bendux Yes, i will join now
@RedM21
@RedM21 7 ай бұрын
This is a great tutorial but for some reason whenever I try to Walljump my character just stickes to the wal for a little bit while in the air and dashing feels more like a jetpack now. Please help...
@howtogetthat4533
@howtogetthat4533 7 ай бұрын
if (Input.GetButtonDown("Jump") && wallJumpingCounter > 0f) { isWallJumping = true; rb.velocity = new Vector2(wallJumpingDirection * wallJumpingPower.x, wallJumpingPower.y); wallJumpingCounter = 0f; i think this line is your problem
@nixelz7455
@nixelz7455 Жыл бұрын
I do really think i understood the idea between all the code on this video, but my character seems to bounce to the other wall instead of waiting me to press the jump button again. In my project the gravity is lower so i had to change values from the wallJumpingPower variable in orther to make it organic. Why is he bouncing? Did i forget something important on the video? I already watched it 3 times. Thank You!
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@sunhikpramanik2429
@sunhikpramanik2429 Жыл бұрын
@@bendux I also tried it and am facing the same problem that it is jumping twice instead of once. Any solution to that?
@bendux
@bendux Жыл бұрын
@@sunhikpramanik2429 Join our Discord server, and let's solve your problem together!
@AidenUPVR
@AidenUPVR Жыл бұрын
You should make a tutorial on how to create animations, I have your source code for movement, and don't know if Brackey's version would work with your code.
@bendux
@bendux Жыл бұрын
I definitely want to make a video about animations in the future.
@AidenUPVR
@AidenUPVR Жыл бұрын
@@bendux I have all my sprites ready for that video. I'm working on your ladder tutorial right now. I'm hoping that in the mean time, Brackey's method will work on your script, because it's just a few lines of code. Also I fixed the infinite jumping crisis I had.
@bendux
@bendux Жыл бұрын
@@AidenUPVR I'm glad you were able to fix it.
@VaneTheLocal
@VaneTheLocal Жыл бұрын
Thx for the vid. I was just wondering, how does the "mathf.clamp" function work?
@VaneTheLocal
@VaneTheLocal Жыл бұрын
Like i mean...i know how it works and how to use it with transform.position, but not with rigidbody 😢
@VaneTheLocal
@VaneTheLocal Жыл бұрын
I can't find any lessons on it, only with the transform...
@bendux
@bendux Жыл бұрын
docs.unity3d.com/ScriptReference/Mathf.Clamp.html
@VaneTheLocal
@VaneTheLocal Жыл бұрын
@@bendux thx, but it still doesn't really make sense... I don't get how ur using the clamp function in the vid, anyways thank you....
@bendux
@bendux Жыл бұрын
@@VaneTheLocal What's the problem?
@neilaszemgulys6754
@neilaszemgulys6754 Жыл бұрын
Your tutorials are the best. But then I am wall sliding and i hold arrow key what makes my player face wall im sliding I can just spam space bar and he just slides upwards all the time sticked to the wall. Is there a way to fix that?
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@neilaszemgulys6754
@neilaszemgulys6754 Жыл бұрын
@@bendux ok
@baptiste4171
@baptiste4171 16 күн бұрын
@@neilaszemgulys6754 hey i have the same problem, what was the solution ?
@lanceychu9781
@lanceychu9781 Жыл бұрын
hello, I encountered a problem with the flipping part of the character. It seems that when the walljump happens, my character for some reason looks left when moving to the right and vice versa. I followed your tutorials on the movement + this video. Would appreciate the help thanks :>
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@lazougre4229
@lazougre4229 Жыл бұрын
your player could by rotated to the wrong direction from the beginning. you can flip it in unity by adjusting the scale on the X or do the same in the start method: void Start() { Vector3 theScale = transform.localScale; theScale.x *= -1; transform.localScale = theScale; } (Doing it in unity is better :) )
@kampfkiwi0828
@kampfkiwi0828 Жыл бұрын
can you combine all the videos now?
@bendux
@bendux Жыл бұрын
I definitely want to upload a character controller with all the features of my tutorials in the future.
@jevonbulze1429
@jevonbulze1429 Жыл бұрын
Im using this code along with the dash one but I'm running into an issue where my dash doesn't work. Any suggestions?
@bendux
@bendux Жыл бұрын
It probably has something to do with the order of execution in your script.
@Just_Zeni
@Just_Zeni 7 ай бұрын
I don't know why but I did it exactly like in the video and it doesn't work. I try to solve it for 3 hours but it still doesn't work. Maybe it's a bug or something like that, do you have a solution?
@Just_Zeni
@Just_Zeni 7 ай бұрын
nvm i just was dumb
@officialtjlgamer
@officialtjlgamer 7 ай бұрын
@@Just_Zeni what was your issue?
@volcanicau6604
@volcanicau6604 Жыл бұрын
when I jump off the wall the player continues to move any quick fix?
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@2eea5y70
@2eea5y70 Жыл бұрын
hi bro i love your stuff , they are masterpiece but can you make a video about adding acceleration and decceleration for smoother 2d movement?
@bendux
@bendux Жыл бұрын
Try Input.GetAxis instead of Input.GetAxisRaw.
@Cristofercat
@Cristofercat Жыл бұрын
do you know how to make a ledge grab?
@simonstechhacks
@simonstechhacks Жыл бұрын
I copied the source code and pasted the code into PlayerMovement and made wall thingy. I linked it to the player and everything but when i play if i jump at the wall it just noclips through. I changed the layer to wall for the walls. Help pls
@bendux
@bendux Жыл бұрын
Do your walls have a Box Collider 2D component?
@simonstechhacks
@simonstechhacks Жыл бұрын
@@bendux Oops. yeah thanks i didnt have it
@sushiman_
@sushiman_ 2 жыл бұрын
hello i love ur tutos you are so good to explain but can you do your camera split tuto but smooth camera split? like when the players are in a short distance to each other the camera smoothly transform into one camera (like in human fall flat)
@bendux
@bendux 2 жыл бұрын
I've added it to my list. Thank you for the suggestion!
@featherlitegames
@featherlitegames Жыл бұрын
Is it performant to call these methods every frame, even when the player isn't wallsliding? I'm sure it is, I just wanted to ask.
@bendux
@bendux Жыл бұрын
Yes!
@whynotvoid
@whynotvoid 8 ай бұрын
i used animations to flip my player, how would i go about that?
@bendux
@bendux 8 ай бұрын
I would recommend using a different method to flip your player.
@cj.shot8616
@cj.shot8616 5 ай бұрын
thank you SOoooooooo much, How can I increase my character wall jump ?
@bendux
@bendux 5 ай бұрын
Increase the wallJumpingPower values at the top of the script.
@miceh2
@miceh2 Жыл бұрын
How would you go about this with tile sets?
@bendux
@bendux Жыл бұрын
You could create a separate tilemap for walls.
Smooth Camera Zoom In Unity
3:23
bendux
Рет қаралды 27 М.
Improve Your Platformer with Forces | Examples in Unity
7:01
Dawnosaur
Рет қаралды 177 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
MAGIC TIME ​⁠@Whoispelagheya
00:28
MasomkaMagic
Рет қаралды 31 МЛН
Wall Jumps and Wall Slides -  2D Platformer Unity #4
10:57
Game Code Library
Рет қаралды 4 М.
Improve your Platformer’s Jump (and Wall Jump) | Unity
8:12
Dawnosaur
Рет қаралды 122 М.
5 Reasons Your Indie Platformer Game Sucks! (+Easy Fix!)
6:39
Jonas Tyroller
Рет қаралды 237 М.
The Game That Hacks Your Brain
24:43
camwing
Рет қаралды 1,1 МЛН
Math for Game Programmers: Building a Better Jump
25:43
GDC 2025
Рет қаралды 471 М.
Secrets to a Great Platformer Character with Unity
3:11
Dawnosaur
Рет қаралды 63 М.
How do non-euclidean games work? | Bitwise
14:19
DigiDigger
Рет қаралды 2,4 МЛН
Wall Slide and Wall Jump Unity 2D
24:18
ChronoABI
Рет қаралды 24 М.
Coding Adventure: Boids
8:35
Sebastian Lague
Рет қаралды 1,5 МЛН
How to make a 2D Wall Jump & Wall Slide using UNITY & C#!
10:53
Blackthornprod
Рет қаралды 98 М.
Sigma baby, you've conquered soap! 😲😮‍💨 LeoNata family #shorts
00:37