How To Dash In Unity

  Рет қаралды 143,616

bendux

bendux

Күн бұрын

Пікірлер: 471
@AkiDevelops
@AkiDevelops 10 ай бұрын
I wasn't even thinking of adding Dash to my game, but after seeing this tutorial I quickly added it in next to no time. Thanks for the help! :)
@AkiDevelops
@AkiDevelops 10 ай бұрын
also u deserve a lot more subs
@alecraigan4568
@alecraigan4568 2 жыл бұрын
3:41 , come on now no need for that I'm flustered.... your tutorials are amazing and you did a fantastic job explaining the process to us newcomers into the gaming development community!
@srivikas1834
@srivikas1834 2 жыл бұрын
This is such an easy way to add Dash. I didn't even want to try using dash but after I saw this video, I was able to implement it into my game in 5 mins. Thank you so much. Wish there was a lot more content from you.
@chrishoben8270
@chrishoben8270 Жыл бұрын
Thank you so much! We were using Brackey's tutorial on 2D movement (and his script), but when it came to stuff like Dashing it was almost impossible to implement. Thank you!
@cornmoss638
@cornmoss638 2 жыл бұрын
Dude thank you so much, I decided to remove the lines of code that collect the gravity info which makes the player dash straight and also used the box collider I used to see if I am on the ground to determine if I could dash. This allows my dashes to still have gravity effects and to only be performed on the ground, so if the player rolls off the edge they will still fall. Thanks so much mate
@MugStudios2024
@MugStudios2024 3 ай бұрын
These simple tutorials have been a lifesaver! THANK YOU!
@HarleyKitson
@HarleyKitson 10 ай бұрын
Super useful video! Got it done in no time with no bugs! Really helped me out on my coursework, thanks! :)
@Aterbrarum
@Aterbrarum Жыл бұрын
For a top-down game, to dash towards the mouse pointer I used mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); mousePos.z = 0f; rb.velocity = dashingSpeed * Time.deltaTime * new Vector2(mousePos.x - playerUnit.transform.position.x, mousePos.y - playerUnit.transform.position.y).normalized; The rest is pretty much the same. I removed the parts relating to gravity and I had to start the couroutine from FixedUpdate(), not Update(), otherwise I got inconsistent dash speed. Useful tutorial.
@bendux
@bendux Жыл бұрын
Thank you for sharing! As far as I know, you don't need to multiply by Time.deltaTime if you set the velocity as shown. Maybe I'm wrong, but that's how they do it in the documentation.
@Khud0
@Khud0 2 жыл бұрын
Woah, I've never seen an IEnumerator used this way before! Oh, all the possibilities this opens! Thank you very much, your short videos are perfect for my procrastination periods. :)
@progCan
@progCan Жыл бұрын
thanks for the tutorial, i made a more advanced version of it that includes vertical dahsing (both up and down) and diagonal dashing in any direction. i did it by replacing the vector(2) you set the rb.velocity with: new Vector2(Input.GetAxisRaw("Horizontal"), Input.GetAxisRaw("Vertical")) * DashForce
@bendux
@bendux Жыл бұрын
Thank you for sharing!
@progCan
@progCan Жыл бұрын
@@bendux you are welcome
@bastienpetit8124
@bastienpetit8124 Жыл бұрын
Hello, I tested your system but after a vertical dash, the player continues to climb, keeping the momentum of the dash until falling back with gravity. How can I fix this?
@scorpiusjones5436
@scorpiusjones5436 Жыл бұрын
This is pretty aweome. Just throwing this out there, but helping out in the comments section and not on a Discord server can potientally help so many more people down the road imo
@shamangrayson8143
@shamangrayson8143 Жыл бұрын
Works perfectly! I had done my player turning a little differently so I just made if statements for isFacingRight true or false to dictate the different directions. Thank you so much!
@pyxelgamer
@pyxelgamer 2 жыл бұрын
You never mess up while typing. It's so smooth that I have the weird feeling that you make an AutoHotkey script or something in advance. Anyways, good video.
@bendux
@bendux 2 жыл бұрын
I actually use AutoHotkey to avoid mistakes. Thank you!
@pyxelgamer
@pyxelgamer 2 жыл бұрын
@@bendux Ok, you put that much effort? I'm suscribing.
@bendux
@bendux 2 жыл бұрын
@@pyxelgamer Haha, yes!
@amaantrieshard
@amaantrieshard Жыл бұрын
Thanks so much dude, I'm a complete noob to this and you made it look easy. I appreciate you.
@SpivSpirit
@SpivSpirit Жыл бұрын
Thanks, it helped a lot. I just love how straight to the point it was.
@kinopiko01
@kinopiko01 5 ай бұрын
Thanks for the tutorial. Some of you may have a problem with the dashing as that it only allows you to dash in one direction. To fix this: Change flip's private void to this: private void Flip() { if (isFacingRight && horizontal < 0f || !isFacingRight && horizontal > 0f) { Vector3 localScale = transform.localScale; isFacingRight = !isFacingRight; if(isFacingRight) localScale.x = 1f; else localScale.x = -1f; transform.localScale = localScale; } } And the IEnumenaratorDash to this: private IEnumerator Dash() { canDash = false; isDashing = true; float originalGravity = rb.gravityScale; rb.gravityScale = 0f; rb.velocity = new Vector2(transform.localScale.x * dashingPower, 0f); print(rb.velocity); tr.emitting = true; yield return new WaitForSeconds(dashingTime); tr.emitting = true; rb.gravityScale = originalGravity; isDashing = false; yield return new WaitForSeconds(dashingCooldown); canDash = true; } Hope this helps
@DeltaReviews420
@DeltaReviews420 Жыл бұрын
if your dashing in the wrong direction try setting IsFacingRight to true in the player movement code, worked for me.
@matsu4721
@matsu4721 2 жыл бұрын
Thanks for awesome tutorial! Can you do how to wall jump in unity?
@GlitchSound
@GlitchSound 2 жыл бұрын
Yes! That would be awesome
@bendux
@bendux 2 жыл бұрын
I definitely want to make a video about wall jumping in the future.
@mcgwynardplayz5407
@mcgwynardplayz5407 2 жыл бұрын
@@bendux yo is out?? I just watched this.. hehe
@OrabiMix
@OrabiMix Жыл бұрын
Always best tutorials in those underrated channels.. new sub ❤️❤️
@gamesbyspinola
@gamesbyspinola 2 жыл бұрын
really clean set up for the dash ability really similar to the one I have but what I really liked was the trail feature. I didn´t knew about that really cool ;) !
@陳柏宇-s6z
@陳柏宇-s6z 16 күн бұрын
great tutorial, the video and code are both short and clean, thank you
@YourDoinGoodLad
@YourDoinGoodLad 6 ай бұрын
you have the best tutorials for unity
@usamabinmuzaffar692
@usamabinmuzaffar692 Жыл бұрын
Do note one thing though. Constantly starting a coroutine can compound the computation cost of your game. Make sure that you stop the coroutine after it is used.
@bendux
@bendux Жыл бұрын
In this case, it's not necessary to stop the coroutine manually.
@growingupaqueen2398
@growingupaqueen2398 2 жыл бұрын
1000 sub dude keep going your videos are short and direct to the point the code is easy to understand Thank you for being here so glad i found ur channel
@oknaa8526
@oknaa8526 2 жыл бұрын
thankss
@luanlugo6005
@luanlugo6005 Ай бұрын
Edson vence o Larry seu lacrador., amei o video my man.
@OzunaGameplays
@OzunaGameplays 2 жыл бұрын
This is the most useful video about dashing, thank you so much!
15 күн бұрын
Thanks bro it was short and really effective.
@deswave1
@deswave1 2 жыл бұрын
Thank you so much this was so helpful, I'm now beginning to program dashing up and down
@bendux
@bendux 2 жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@deswave1
@deswave1 2 жыл бұрын
@@bendux ok!
@Bierbr3zel
@Bierbr3zel 2 жыл бұрын
Great video! Can't wait for your next video to be published!!
@derkleinetim45
@derkleinetim45 2 жыл бұрын
Nice Tutorial and I tried it out directly bc i looked for a simple dash so long. I had a little Problem, when i dash my player gets boosted extremly far sometimes. I edited the code a little so i coul use my own Player Code (so it has stuff like Coins). But still a very good and simple tutorial, you definitly deserve more views!
@computer_head8653
@computer_head8653 2 жыл бұрын
Dude you're so funny and your tutorials are awesome.
@SebMakesGames
@SebMakesGames Жыл бұрын
I don't usually comment on videos, but this realy helped me out! Thanks.
@cyberducc
@cyberducc 2 жыл бұрын
you content is focused and neat! subbed!
@apesyb9812
@apesyb9812 2 жыл бұрын
Hey bendux, i am making a game for uni project. never used unity before, you have helped me alot. thanks
@xxzz195
@xxzz195 6 ай бұрын
Thanks a lot. I don't even know Dash code can be so easy.
@gracetang1025
@gracetang1025 2 жыл бұрын
Thank you for making dash so easy! I have implement dash into my game!
@vextor_daddy187
@vextor_daddy187 Жыл бұрын
Thank You mans this helped a lot and now my cube can dash.
@XxADONExX
@XxADONExX Жыл бұрын
you don't know much this helped me. thank you so much!
@leefy_sf
@leefy_sf 2 жыл бұрын
this is very straight forward with a short intro, I love it! Also quick question, I would like to limit the number of dashes the player can have mid-air and when stepping on the floor it refreshes, thanks!
@bendux
@bendux 2 жыл бұрын
The answer to your question goes beyond the scope of a KZbin comment, but I'd still like to help you. Join our Discord server, and let's solve your problem together!
@projectmuirear396
@projectmuirear396 Жыл бұрын
Hi! I had a similar want, I used this fix, maybe it will work for you, in the private void Update() I used the following lines of code, if (IsGrounded()) { canDash = true; } else { canDash = false; } simple but it works!
@bendux
@bendux 11 ай бұрын
@@noobdev6464 It's hard to tell what's going on without seeing your script.
@bendux
@bendux 11 ай бұрын
@@noobdev6464 I advise you to compare your script with the source code in the description.
@bendux
@bendux 11 ай бұрын
@@noobdev6464 rb.velocity = new Vector2(transform.localScale.x * dashingPower, 0f);
@AxXis--
@AxXis-- 2 жыл бұрын
Thank you so much!! I love this short simple and amazing tutorial!!
@Nin10doLetsPlay
@Nin10doLetsPlay 2 жыл бұрын
Hey I have a Question. How do I make it so that the Player can also dash diagonally?
@bendux
@bendux 2 жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@DevNoob
@DevNoob 2 жыл бұрын
Great and understandable video! Great job bendux
@heroysake
@heroysake Жыл бұрын
Si quelqu'un a ajouté, comme moi, le wall jump avant ce tutoriel, le "dashing power", pour augmenter la vitesse en dash, n'est pas appliqué. Pour ça, j'ai du ajouter "&& !isDashing" au "FixedUpdate" : if (!isWallJumping && !isDashing) rb.velocity = new Vector2(horizontal * speed, rb.velocity.y); Ainsi les deux fonctionnent ! Thank you for the videos and curious to see the future tutorials :D
@darkknight2825
@darkknight2825 Жыл бұрын
It's so simple thank you very much 😁
@U2BE4ALL
@U2BE4ALL Жыл бұрын
Thanks, it looks awesome!
@BigVideoSmallClip
@BigVideoSmallClip Жыл бұрын
I love these tutorials
@trulybarr5341
@trulybarr5341 Жыл бұрын
Do you know how to make a character Dash forward on a 3D Side Scroller?
@playanoapps
@playanoapps 2 жыл бұрын
This was very helpful man!
@BILGI_PASA
@BILGI_PASA 2 жыл бұрын
Thank you bendux. The video helped me so much.
@TheNamelessTO
@TheNamelessTO 2 жыл бұрын
Awesome video! Short and to the point! I had an idea on how I want to do a dash function but mine wasn't as nice as yours. =) I hope you'll make more videos =)
@borishofficial
@borishofficial 5 ай бұрын
i know it's been a pretty long time since this was posted, but is there a way to cancel the dash mid-way through, via a jump or key input? this tutorial was really useful for someone learning the basics but i'm wondering if another method would be needed
@amaanmujeeb7863
@amaanmujeeb7863 7 ай бұрын
U r truly underrated man❤❤
@le-mon
@le-mon Жыл бұрын
Very helpful, thank you, subbed
@vassago635
@vassago635 2 жыл бұрын
Hi bendux. First of all, congrat for your effort. I know manage a youtube channel requires time and will, so thank you. I miss something about dashing in your video: usually, dash is used to dodge traps or enemies. How should I do to avoid collisions through the dash moment? If I disable the player collider he can walk through walls.
@bendux
@bendux 2 жыл бұрын
The answer to your question goes beyond the scope of a KZbin comment, but I'd still like to help you. Join our Discord server, and let's solve your problem together!
@blackantz5293
@blackantz5293 9 ай бұрын
Nice tutorial, I was thinking of making it so you can dash through enemies without losing velocity, how would i Impliment that?
@CodedGamer972
@CodedGamer972 Жыл бұрын
i would say increese the gravity when the player is done dashing or if the player is in air or not grounded such as jump or falling
@nightfox_69
@nightfox_69 Жыл бұрын
GOD Tier Tutorial!
@sldeverything431
@sldeverything431 Жыл бұрын
thanks for the knowledge
@gideon5261
@gideon5261 Жыл бұрын
Hello, this was a great easy to understand video. I only have one question and that is how to add a sound effect without you just flying forever until you die and then play the effect.
@gideon5261
@gideon5261 Жыл бұрын
no wories, figured it out after playing around with the placement of dashSoundEffect.Play(); in my code
@Mojzer_
@Mojzer_ 2 жыл бұрын
pls do more vids because they help VERY MUCH
@funforgingstudio4690
@funforgingstudio4690 2 жыл бұрын
Hi! Great tutorial as always! Is it possible to make level system in Unity?) like you rich the end of a level and then you appears in new one. It would be pleasure to see it from you!)
@bendux
@bendux 2 жыл бұрын
I've added it to my list. Thank you for the suggestion!
@Davearmstrong42
@Davearmstrong42 2 жыл бұрын
Great vid! So easy too implement. How do you prefer to deal with wall collisions mid dash?
@bendux
@bendux 2 жыл бұрын
What do you mean?
@Davearmstrong42
@Davearmstrong42 2 жыл бұрын
@@bendux if you dash in mid air... then hit a wall half way through the dash... is it handled normally or do you have to consider a wall collision mid dash vs a jump. Im new to game dev... Does the dash action just stop at a collision or do you handle that differently during a dash?
@bendux
@bendux 2 жыл бұрын
@@Davearmstrong42 Unity automatically takes care of wall collisions.
@tristanp763
@tristanp763 Жыл бұрын
Thank you so much!
@artZs-chaos
@artZs-chaos Жыл бұрын
anybody know how to make the player look the other way with a different flip method.
@bendux
@bendux Жыл бұрын
How do you flip your player?
@zendaki4601
@zendaki4601 Жыл бұрын
you really need to be more popular then you are your videos are truly amazing you deserve to have your pillows cold and your gas prices lowered
@noodles4s892
@noodles4s892 3 ай бұрын
thank you very much👍
@lukenorfleet
@lukenorfleet Жыл бұрын
this is so helpul thanks you so much
@Skitozzz
@Skitozzz Жыл бұрын
Very easy to follow thanks so much here is a sub 👍
@amine8689
@amine8689 6 ай бұрын
hey man ! thanks a lot !!!
@mcredbunny5542
@mcredbunny5542 10 ай бұрын
Thanks for the video!! Can you explain how to put dash in input system?
@bendux
@bendux 10 ай бұрын
We have a solution for that on our Discord server. Feel free to join!
@GuyWithChainsaw
@GuyWithChainsaw 4 ай бұрын
Will it work in unity 3d? With 3d movement?
@slickityragnarthegreat3013
@slickityragnarthegreat3013 Жыл бұрын
Amazing Video! I just had one issue, where my sprite can only dash left. How can I fix this?
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@gabreese_
@gabreese_ Жыл бұрын
Hey Hey, i used this in my game and changed it up a bit. Instead of using a transform i just set the velocity to a value. However i do have an issue. Could you think of any way to add jump functionality mid dash while keeping the current x velocity?
@bendux
@bendux Жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@rydogg5117
@rydogg5117 2 жыл бұрын
This is a great video but I'm having an issue. When I click shift it only dashes right. I know this is an issue with the dashingPower because when I make the 24 into a -24 it dashes left. any idea how to fix?
@bendux
@bendux 2 жыл бұрын
It depends on how you flip your player. Would you like to show me your code on Discord?
@rydogg5117
@rydogg5117 2 жыл бұрын
@@bendux sure thing! I will join and ask you then
@Kelgorr
@Kelgorr 2 жыл бұрын
​@@bendux Hey I'm having the same issue, I joined your discord. If you have the time should I just message you directly? Edit: I used this canDash = false; isDashing = true; float originalGravity = rb.gravityScale; rb.gravityScale = 0f; trail.emitting = true; if (sprite.flipX == true) { rb.velocity = Vector2.left * dashForce; } else if (sprite.flipX == false) { rb.velocity = Vector2.right * dashForce; } yield return new WaitForSeconds(dashTime); isDashing = false; rb.gravityScale = originalGravity; trail.emitting = false; yield return new WaitForSeconds(dashCooldown); canDash = true; Are there flaws to this method at all?
@bendux
@bendux 2 жыл бұрын
@@Kelgorr I'm glad you were able to fix it. Good job!
@dachigobeja8490
@dachigobeja8490 2 жыл бұрын
Thanks for the tutorial man, but the problem I have is that the player's momentum doesn't reset afterwards so it keeps going forwards in that dashing speed
@bendux
@bendux 2 жыл бұрын
Would you like to show me your code on Discord?
@dachigobeja8490
@dachigobeja8490 2 жыл бұрын
@@bendux actually no, I figured it out myself by manually setting player velocity to zero when the dash ended, I just forgot to edit the comment lol Thanks anyway
@bendux
@bendux 2 жыл бұрын
@@dachigobeja8490 I'm glad you were able to fix it.
@lumiinaty8276
@lumiinaty8276 Жыл бұрын
Hey, good video, do you know how to do it on a topdown game to dash in the direction the player is moving (the y and x axis ) ? Thanks for the help
@bendux
@bendux Жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@erentst
@erentst 2 жыл бұрын
2:00 what do i do if my character moves up,down,right and left??
@bendux
@bendux 2 жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@cristophergonzalez1106
@cristophergonzalez1106 2 жыл бұрын
Hello thank you very much for this tutorial really is very good! I have a question ! how can I make the dash work every 5 seconds? since every time I press the button makes the dash, thank you very much for your time!
@bendux
@bendux 2 жыл бұрын
Increase the dashing cooldown at the top of the script.
@sirgwindortvinuel
@sirgwindortvinuel 2 жыл бұрын
@@bendux hey i have one question. So the script works and i did the same as you and yeah trail shows up and all that but we don't actually dash. Like when we press shift it just goes in the speed i was already before dashing. Do you know how to fix this?
@bendux
@bendux 2 жыл бұрын
@@sirgwindortvinuel Would you like to show me your code on Discord?
@frashfries
@frashfries 11 ай бұрын
ur genius and thanks so much
@EnemyOTS
@EnemyOTS Жыл бұрын
hmm for some reason I only dash to the right and gravityScale never changes! Edit: I've fixed it since I'm using this flip function:- private void Flip() { facingRight = !facingRight; Vector3 Scaler = transform.localScale; Scaler.x *= -1; transform.localScale = Scaler; } I added:- if(facingRight) rb.velocity = new Vector2(transform.position.x * dashingForce, 0f); if (!facingRight) rb.velocity = new Vector2(-transform.position.x * dashingForce, 0f); so my character will dash depending on facing right or lift variable, the full function would look like this:- private IEnumerator Dash() { isDashAllowed = false; isDashing = true; float originalGravityScale = rb.gravityScale; rb.gravityScale = 0f; if(facingRight) rb.velocity = new Vector2(transform.position.x * dashingForce, 0f); if (!facingRight) rb.velocity = new Vector2(-transform.position.x * dashingForce, 0f); yield return new WaitForSeconds(dashingTime); rb.gravityScale = originalGravityScale; isDashing = false; yield return new WaitForSeconds(dashingCD); isDashAllowed = true; } and for the gravity scale I have no idea why its not changing at all, I'm still debugging. Edit 2: i couldn't figure it out so i had to play around the issue using the dash animation. I had to add keys that change the GravityScale and disables the attacks scripts while dashing and resetting everything at the last keyframe.
@Kazu173_
@Kazu173_ Жыл бұрын
is there any way you could help me use this to creating something like a wavedash? i want to dash diagonally towards the ground and use that momentum to slide and carry that speed
@Kazu173_
@Kazu173_ Жыл бұрын
i also want it to gradually decrease the speed instead of instantly stopping
@bobajeff5958
@bobajeff5958 Жыл бұрын
Complete beginner here, but I noticed that the player can dash while not moving. Here's my fix in case anyone else is struggling with this. put this inside the Update method canDash = false; if (Input.GetAxisRaw("Horizontal") == 1 || Input.GetAxisRaw("Horizontal") == -1) { canDash = true; } Flip(); Hope this helps!
@seventwo7582
@seventwo7582 2 жыл бұрын
Hi, I'm from Brazil, I have difficulty with English. Your tutorial is wonderful! But I have a doubt: Every time I use the dash, the camera doesn't follow the character immediately, but only after the dash animation ends. How do I make the camera follow the character during dash animation?
@bendux
@bendux 2 жыл бұрын
Would you like to show me your code on Discord?
@venxm243
@venxm243 Жыл бұрын
This tutorial is awesome - but I have one issue. I use a different code for my player movement, and this method doesn't seem to work with it at all. I'm not sure why, because there is nothing about Dash in my script. I'm wondering if its because there is no animation attached to the player? Not sure how to fix this :(
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@Arcann_bhp
@Arcann_bhp Жыл бұрын
i don't understand the if (is dashing) return; how does it disable ur movement while dashing so you can only move the direction you started ur dash?
@bendux
@bendux Жыл бұрын
learn.microsoft.com/en-us/dotnet/csharp/language-reference/statements/jump-statements#the-return-statement
@thevoidconqueror
@thevoidconqueror Жыл бұрын
hey could you make an video combining the wall jump/slide and this vid cause i want to incorporate both but adding both codes to the single script is difficult with some of the differences between them as well as world settings for the gravity for these different projects cause i think im having issues with it
@bendux
@bendux Жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@cnvanims
@cnvanims 2 жыл бұрын
idk if you still answer questions, but i wanted to make it so that i could dash upwards and downwards. I am new in both unity and c# so i'm kinda confused how to implement that, can you please help me?
@bendux
@bendux 2 жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@Sh1vt
@Sh1vt 8 ай бұрын
hey a little advice please. error CS0246: The type or namespace name 'IEnumelator' could not be found (are you missing a using directive or an assembly reference?) help pls
@bendux
@bendux 7 ай бұрын
IEnumerator
@Nekkka
@Nekkka Жыл бұрын
Thank you for your tutorial! But i have a little problem. the length of the dash is different each time, why can this happen?
@bendux
@bendux Жыл бұрын
Would you like to show me your code on Discord?
@Nekkka
@Nekkka Жыл бұрын
@@bendux 👌okay
@malindupraboda1918
@malindupraboda1918 5 ай бұрын
Thank you :)
@alexanderthegreat4817
@alexanderthegreat4817 3 ай бұрын
Hi my character sometimes dashes into objects and gets stuck, im using your movement with unity input system tutorial and this dash tutorial, any ideas on whats gone wrong?
@whysl
@whysl Ай бұрын
Maybe you shouid add a physic material 2d with friction 0. Just drag this thing to collider and it will probably work.
@ketsueki血液
@ketsueki血液 Жыл бұрын
Can you show us how to add a sound effect to the dash please?
@animationsbelike
@animationsbelike 2 жыл бұрын
Thank you! :D
@GMCorner
@GMCorner Жыл бұрын
Can i multiply the y axis of the rgbd2d with dashing power to dash diagonally ? This only allow us to dash horizontally
@bendux
@bendux Жыл бұрын
We have a solution for that on our Discord server. Feel free to join!
@C4M3R0N03
@C4M3R0N03 7 ай бұрын
Thank you for the tutorial, but my dash only works when moving to the right direction but not the left direction. What can I do to enable both directions in Visual Studio?
@bendux
@bendux 7 ай бұрын
How do you flip your player?
@C4M3R0N03
@C4M3R0N03 7 ай бұрын
@@bendux I’ve copied the “private void Flip()” from the video but I think the game doesn’t know where it’s actually facing to flip. Is it possible to make something similar but with “is moving” instead of “is facing?”
@bendux
@bendux 7 ай бұрын
@@C4M3R0N03 You probably forgot to call the Flip method in the Update method.
@C4M3R0N03
@C4M3R0N03 6 ай бұрын
With the part under…? private void Update() Flip();
@bendux
@bendux 6 ай бұрын
@@C4M3R0N03 Yes!
@surai262
@surai262 2 жыл бұрын
Great vid! can you also do a wall jump and crouching tutorial? thanks! also subscribed
@bendux
@bendux 2 жыл бұрын
Wall jumping and crouching are both on my list for future videos.
@rastythecrab3773
@rastythecrab3773 7 ай бұрын
Hello, i followed your tutorial but when i tried to jump and dash my character just keeps floating until the end of the screen without faling down, can you help me with this ? Tysm!
@rastythecrab3773
@rastythecrab3773 7 ай бұрын
nvm i forgot to move the trail renderer and now i got, thanks for the tutorial !
@isaakfleshman1486
@isaakfleshman1486 10 ай бұрын
I was wondering if there is a way to change the button to work when a controller button is clicked
@bendux
@bendux 8 ай бұрын
There are several ways to do that, but I would recommend taking a look at Unity's new input system.
@VibrantFish74
@VibrantFish74 2 жыл бұрын
Great vid!!! When i dash i just keep floating on got some tips to fix thise?
@bendux
@bendux 2 жыл бұрын
Would you like to show me your code on Discord?
How To Make 2D Falling Platforms In Unity
2:54
bendux
Рет қаралды 28 М.
How To Wall Slide & Wall Jump In Unity
6:38
bendux
Рет қаралды 74 М.
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 97 МЛН
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 3,4 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Simple DASH Mechanic in Unity
7:27
BMo
Рет қаралды 20 М.
Dust Effect when Running & Jumping in Unity [Particle Effect]
5:55
MELEE COMBAT in Unity
21:07
Brackeys
Рет қаралды 1,6 МЛН
Improve your Platformer’s Jump (and Wall Jump) | Unity
8:12
Dawnosaur
Рет қаралды 122 М.
How to make 2D GLOW in Unity!
15:56
Brackeys
Рет қаралды 602 М.
C++ Developer Learns Python
9:26
PolyMars
Рет қаралды 2,7 МЛН
Character Controller in Unity 2D! (Move, Dodge, Dash)
23:41
Code Monkey
Рет қаралды 119 М.
AI Learns to Play Tag (and breaks the game)
10:29
AI Warehouse
Рет қаралды 4,1 МЛН
Make a 2D Ghost Effect:  How to with Unity and C#
19:09
Mister Taft Creates
Рет қаралды 27 М.
How I Beat The Password Game
39:53
Bog
Рет қаралды 1,9 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17