2D Movement in Unity (Tutorial)

  Рет қаралды 3,085,615

Brackeys

Brackeys

5 жыл бұрын

Let’s give our player some moves!
● Check out Skillshare: skl.sh/brackeys7
● Character Controller: bit.ly/2MQAkmu
● Download the Project: bit.ly/2KPx7pX
● Get the Assets: bit.ly/2KOkwjt
❤️ Donate: www.paypal.com/donate/?hosted...
····················································································
♥ Subscribe: bit.ly/1kMekJV
● Website: brackeys.com/
● Facebook: / brackeys
● Twitter: / brackeystweet
········································­­·······································­·­····
► All content by Brackeys is 100% free. We believe that education should be available for everyone.
❤️ Donate: www.paypal.com/donate/?hosted...
········································­­·······································­·­····
♪ "ES_Freekin'_Fretless_3" - Mattias Andreasson" by Epidemic Sound
♪ "ES_Dress Code_Black - oomiee" by Epidemic Sound

Пікірлер: 5 400
@sink899
@sink899 5 жыл бұрын
Usually I like your tutorials, but this one isn't great. It doesn't really teach how to do 2D movement, and rather teaches how to use a pre-made script, so in the end nothing about the movement is learnt, other than the inputs. A follow-up video on creating the actual script that does the movements would be useful to people learning, as it'd let them play around with their own ideas, instead of being limited to the pre-made script.
@DukaSoft
@DukaSoft 5 жыл бұрын
I was thinking the exact same
@UBassBoostHD
@UBassBoostHD 5 жыл бұрын
Bilip He said this tutorial is for beginners and he will not do a "propper" script for movement! This tutorial is not bad, for me was very helpfull. Probably you are an advanced developer who knows how to code, but i don't.
@DanielGriffiths
@DanielGriffiths 5 жыл бұрын
I agree, it is much better to see the whole process than using something pre-made.
@StillNight77
@StillNight77 5 жыл бұрын
Feel free to read the code in the script provided to learn from that. This is how most programmers learn.
@felipe18383
@felipe18383 5 жыл бұрын
Good point
@Mistbu
@Mistbu 3 жыл бұрын
All hail lord Brackeys. You will be missed.
@breadman3415
@breadman3415 3 жыл бұрын
What happened?? :0
@mafhchodhri9699
@mafhchodhri9699 3 жыл бұрын
@@breadman3415 he left KZbin
@michaelross3061
@michaelross3061 3 жыл бұрын
@@mafhchodhri9699 why?
@oskari3659
@oskari3659 3 жыл бұрын
@@michaelross3061 he had video about it, just wanted to do something else for a change after doing gamedev stuff really long
@syllebrix5784
@syllebrix5784 3 жыл бұрын
@@breadman3415 he stopped making yt
@thepizzafoogle5481
@thepizzafoogle5481 3 жыл бұрын
Me: Copies exactly everything Unity: Can I offer you 300 compiler errors?
@sirtenders2965
@sirtenders2965 3 жыл бұрын
"forgets to put a ; at the end of a line"
@tomtin4363
@tomtin4363 3 жыл бұрын
Try not to exactly copy it then or at least make sure you understand everything going on!
@xDTHECHEMISTx
@xDTHECHEMISTx 3 жыл бұрын
LOL
@MatthewNitz
@MatthewNitz 2 жыл бұрын
omg your not wrong
@MatthewNitz
@MatthewNitz 2 жыл бұрын
i still dont know how to add a player controller because i do everything the video says but unity hates me i guess
@someidiotontheinternet5615
@someidiotontheinternet5615 3 жыл бұрын
me: do everything correctly unity: *n o*
@ZeonplayzYt
@ZeonplayzYt 3 жыл бұрын
Underrated comment and the same happened to me
@CreeperMedia7801
@CreeperMedia7801 3 жыл бұрын
@gentoo Hey man, it seems you have a double = in your statement. Input.GetAxisRaw("Horizontal") should be multiplied by the runSpeed variable. The line should be: horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed; Hope this helps!
@technofreaktk7094
@technofreaktk7094 3 жыл бұрын
sameee
@SomeDudeOfficial
@SomeDudeOfficial 3 жыл бұрын
the script is outdated
@someidiotontheinternet5615
@someidiotontheinternet5615 3 жыл бұрын
@@SomeDudeOfficial oh, thank you William afton! I didnt knew it
@ItsMeHoodson
@ItsMeHoodson 3 жыл бұрын
"and know our character should be able to walk." My Character during the Game Jam: best i can do is spin.
@landonlikesjazz3420
@landonlikesjazz3420 3 жыл бұрын
Bro I’m trying to make my character spin and I can’t figure it out.
@PlumCastleonBlitz
@PlumCastleonBlitz 2 жыл бұрын
@@landonlikesjazz3420 Z-axis probably not clamped in the rigidbody 2d settings. Check 5:04.
@willluciano6390
@willluciano6390 2 жыл бұрын
And
@PlumCastleonBlitz
@PlumCastleonBlitz 2 жыл бұрын
@@gaganpatidar8820 Yes. That is what I did. Freeze the Z I believe.
@bashrock2548
@bashrock2548 2 жыл бұрын
Your character live in spain whit out the "a"
@MrButterGuy
@MrButterGuy 3 жыл бұрын
For those of you still having trouble with your character falling through the ground, set a Tilemap Collide 2D to your tilemap
@pizzarolls9350
@pizzarolls9350 3 жыл бұрын
how
@MrButterGuy
@MrButterGuy 3 жыл бұрын
@@pizzarolls9350 click on your tile map it's a component you can add onto it on the right side window
@pizzarolls9350
@pizzarolls9350 3 жыл бұрын
@@MrButterGuy thx but i found another solution u can add a box collision to your terrain and that made my character not fall through
@just_a_mango
@just_a_mango 3 жыл бұрын
Thank you god
@Rose-ez9vf
@Rose-ez9vf 3 жыл бұрын
Bless you!
@dufwine3621
@dufwine3621 Жыл бұрын
Hey everyone, if you are having some issue with crouch, the script provided in the discription has an error. To solve that, just open with your editor and go to line 67 (it is an if(!crouch) state) and remove the '!' on that line. The reason to do this is that is that the original check - if(!crouch) - is checking if player IS NOT crouching, and then set it to true. We don't want that. In fact, we want to know if player IS crouching. I hope this can help anyone else! Great tutorial though!
@MAS9Nine
@MAS9Nine Жыл бұрын
Okaeaeaej
@robbybobbijoe
@robbybobbijoe Жыл бұрын
Thank you man! When my character started crouching automatically under some stuff he normally should be able to pass through I went to look for info here. I didn't know if you were referencing that problem but I tried doing what you said and it fixed it! Thanks :)
@dufwine3621
@dufwine3621 Жыл бұрын
@@robbybobbijoe You're welcome! XD
@laubi5353
@laubi5353 Жыл бұрын
OMG thank you
@Rainbowgunsh
@Rainbowgunsh Жыл бұрын
mega thx
@thenecromancer4113
@thenecromancer4113 2 жыл бұрын
I'm glad he explains where all of the variables are and what they do. Someone who wants to write code but can't type very fast can know when they are required to put an "arachibutyrophobia" in the code or when they can simply put "r." Super clear too. Thanks!
@isaiah4967
@isaiah4967 4 жыл бұрын
//Wow, that's the cleanest desktop I've ever seen.
@neek01
@neek01 3 жыл бұрын
probably a second windows account for recording
@BryanKeferl
@BryanKeferl 3 жыл бұрын
Love the fact that this comment is written as a comment in script.
@AhmedAhmed-dv4ch
@AhmedAhmed-dv4ch 3 жыл бұрын
@@neek01 or a second monitor with a second desktop
@nakrodus9932
@nakrodus9932 3 жыл бұрын
@@cloudythb Have you define the Layer of your Ground and the "What is Ground"(3:00) in the Character Controller?
@GG-kx4ct
@GG-kx4ct 3 жыл бұрын
//HE SETS IT UP
@raghidalsayek7019
@raghidalsayek7019 11 ай бұрын
for those who are having a problem with the player clipping through the floor when releasing crouch button under an object, you need to edit the CharacterController2D script line 67(!crouch) change it to (crouch) to check if the player IS crouching AND line 64 the Move method you need to remove the first if statement. it basically means its only checking if there is an obstacle above you ONLY when you are pressing the crouch button which wont keep the collider disabled when you release the crouch. However when you remove the if(crouch) the first one in the Move method, it will check if there is an obstacle above you whether you are pressing down the crouch or not. meaning even when you release the crouch button it will STILL check is there an obstacle above you and therefore prevent the player from unchrouching until there is no obstacle above you.
@anchovy5325
@anchovy5325 3 жыл бұрын
me: does everything he said unity: nono we dont do that here
@danniitv
@danniitv 3 жыл бұрын
yea, it doesent work cus that code he is using is outdated.
@anchovy5325
@anchovy5325 3 жыл бұрын
@@danniitv o
@zionlee1004
@zionlee1004 3 жыл бұрын
@@danniitv nah it works
@nyandesu4664
@nyandesu4664 3 жыл бұрын
@@DivSharp You must down load the script and drop it to unity bro, the code still work but there something wrong and need to be fix to work :v
@lerougeun4099
@lerougeun4099 3 жыл бұрын
@@DivSharp I am in 2019.4 too and it doesn't work it says the : The name "Input" does not exist in the current context when i try ton enter playmode. But i checkerd and i did the same things as brackeys ...
@Ithee_The_Fox
@Ithee_The_Fox Жыл бұрын
For anyone struggling with the player still falling through the ground, add a component (box collider 2D) to your terrain. It's the fastest way possible to do it and Brackeys didn't show it on his video. Hope it helped!
@ichifish
@ichifish 5 жыл бұрын
My favorite parts of your tutorials is when: 1) you do something 2) I ask "... but why..?" 3) you go on to something else, and then 4) come back and answer my question.
@Galaxy_World
@Galaxy_World 3 жыл бұрын
no
@kralpata
@kralpata 2 жыл бұрын
no
@timq16
@timq16 2 жыл бұрын
no
@sykoo
@sykoo 5 жыл бұрын
These intros keep getting better and better. 👀 Is it weird that I keep replaying them? They just feel so satisfying.
@shahrozkhan3610
@shahrozkhan3610 5 жыл бұрын
hello Skyoo
@thatonething37
@thatonething37 5 жыл бұрын
Vr tutorials? Just an idea :)
@MrCnts
@MrCnts 5 жыл бұрын
You here?
@timberap4365
@timberap4365 5 жыл бұрын
Yes
@kdhlkjhdlk
@kdhlkjhdlk 5 жыл бұрын
Nice shill!
@SMT-ks8yp
@SMT-ks8yp 3 жыл бұрын
Turns out this set of colliders has weird interaction with platform effectors. The character can land on a platform with bottom side of the box while circle still ignores collision. If you are going to use platform effectors, replace the box with a vertical capsule collider full height long.
@lukenelson9845
@lukenelson9845 Жыл бұрын
You can use the box and circle, but the box has to be smaller than the circle on the left and right edges.
@costachristos9183
@costachristos9183 3 жыл бұрын
This tutorial is actually the best! I tried to make my own 2D controller but not like I expected this is like I expected controller like Play station and other controller movement!
@mrkathooloo5711
@mrkathooloo5711 4 жыл бұрын
For those that are having the problem of not being able to jump, make sure that your GroundCheck is on the actual ground rather than on the bottom of the player.
@huefley8921
@huefley8921 4 жыл бұрын
Thank you so much!! i getting crazy because my Character didnt jump.
@erykbabayan8673
@erykbabayan8673 4 жыл бұрын
Jesus man.... I wouldn't get a clue i fucked that up xD
@alimuddin3535
@alimuddin3535 3 жыл бұрын
dude thank you
@giovannidotto6956
@giovannidotto6956 2 жыл бұрын
THANK YOUUUUUUUUUUUUUUUUUUUU
@NbaDan1
@NbaDan1 2 жыл бұрын
Thank you so much!!!
@dinovidakovic9486
@dinovidakovic9486 5 жыл бұрын
There is a bug in new version of the script for movement. On line 45, I guess they accidentally put !crouch instead of crouch. This bug makes your character be always in the crouch position. To fix the bug, just open the "Character Controller 2D" code and edit that little "!".
@starvedflamingo3820
@starvedflamingo3820 5 жыл бұрын
no its line 67 ... the movement speed line 21,33 is wrong..
@salazarseth1
@salazarseth1 5 жыл бұрын
I just spent quite some time trying to figure out why my player was always crouching, thank you so much. This solved it. P.S. The code has been updated and the line with the crouch error is now line 67.
@DamienGa
@DamienGa 5 жыл бұрын
Merci :)
@pascal8765
@pascal8765 5 жыл бұрын
AAAAAGAGHGHGHGHGHHGHGHGHAGHAGHAGHGHAGHAHHHHHHHHHHHHHHHHHHHHHHHHHGHGAGHGHGHGHHH!!!1!!!11! I worked about 3 hours on that problem and I didn't find it then I looked up your comment and deleted that little "!" and it's done! I don't fricking know should I laugh or cry.
@adityasanjaya838
@adityasanjaya838 5 жыл бұрын
At last, somebody found it
@andrewyannik7136
@andrewyannik7136 2 жыл бұрын
Thanks Brackeys, my character finally moves. Thanks for making this tutorial, it really helped .👍
@foxdemon194v
@foxdemon194v Жыл бұрын
For anyone who was having problems with your sprite crouching before you hit a wall. TLDR; change the size of line 17, K_CeilingRadius to better fit the character. The ceiling and ground checks make a radius that look out for the selected layers, these have a pre set size. You can make a circle and mess with sizes , then copy the size onto line 17, this way the invisible radius will be the size you needed.
@gatjensb
@gatjensb Жыл бұрын
Thank you sooo much, this is the right answer, the problem is not in the code, it dependes on your character height and the position of tiles
@kylejj1998
@kylejj1998 3 жыл бұрын
I am not verry good at computering, but i think im gonna learn a lot from you. Thanks! You keep it straight and simple, so people with no experience like me can understand it.
@jazzallen6537
@jazzallen6537 4 жыл бұрын
I have used you for literally every step in my game dev journey, you are literally so good and useful. You make everything seem so easy
@Ness_Dreemurr
@Ness_Dreemurr 3 жыл бұрын
dude, you are awesome! as a beginner, these vids are SUPER helpful!
@GDPro219
@GDPro219 5 ай бұрын
Amazing video! Clearly explained everything, I was trying for hours to get this to work but once I watched your video it worked in minutes.
@mpixel2058
@mpixel2058 5 жыл бұрын
I would like to see a tutorial like this for a top-down 2D game, like Zelda.
@ubaidullaheffendi-emjedi147
@ubaidullaheffendi-emjedi147 5 жыл бұрын
A Zelda series made in unity (Top Down as well) kzbin.info/door/SKZ683Om2H9yHLL1yX5dBQplaylists
@toasterpostinc3113
@toasterpostinc3113 5 жыл бұрын
So would I
@Sean-ow1lo
@Sean-ow1lo 2 жыл бұрын
@Kiki-deLucio
@Kiki-deLucio 4 жыл бұрын
This worked, thank you so much!! I've struggled with the problem of movement for 3 days now
@arshadali8976
@arshadali8976 9 ай бұрын
why my character can't even move?
@7Edgard
@7Edgard 2 жыл бұрын
Man, thank GOD I found this channel. sad they are no longer plublishing videos anymore, but everything here is just SO HELPFULL!!!! Thanks guys, you've made an awesome job and learning developers around the world salute you!
@santimontano8712
@santimontano8712 4 жыл бұрын
I LOVED THE WHOLE VIDEO :D Your way of explaining everything to a fine detail, what does the code do, what do variables do, situations and what not. A complete lesson/tutorial. I'll be enjoying all your content. This video makes everything seem so easy and workable... just how i like it
@FREEGEMS
@FREEGEMS 4 жыл бұрын
Here’s some problems i faced and solutions i came up with. Player falling through floor / Rigid floor - Use TileMap Collider component on tilemap Couldn’t Move - Noticed my player was stuck in mid air, turned on air control to fix Couldn’t Jump: - Again due to player being stuck in mid air, and you can’t jump unless you are touching the ground. Noticed my ceiling and ground check were mixed up. Rearranged them and fixed the issue. (The ceiling check and ground check steps are required for jumping to work) Couldn’t Crouch - Go into the Character Controller script and press F3 or CTRL + F to use the “find” tool. Type in “!Crouch” (make sure it’s not case sensitive) and edit out that exclamation point.
@Shiro1908
@Shiro1908 4 жыл бұрын
Thank you so much. Now i can crouch :)
@morgangalvin8893
@morgangalvin8893 4 жыл бұрын
Thanks a bunch! The crouch issue was driving me crazy
@PryZ_z
@PryZ_z 4 жыл бұрын
In Germany we call this "Ehrenmann"
@carl_yt2419
@carl_yt2419 4 жыл бұрын
A R Thanks 🙏🏼
@cadence1108
@cadence1108 4 жыл бұрын
Thank you so much! you saved me so much time
@tonydaley3281
@tonydaley3281 3 жыл бұрын
oh wow! thanks for explaining the jump and horizontal functions. I was so confused on why the the default input was space bar, and a and d
@thefallenus
@thefallenus 6 ай бұрын
penis
@themaydayman
@themaydayman 2 жыл бұрын
I love it. Making a platformer where you control a riding sheep and didn't have a script to use. This really helped!
@GilbertHernandez-eg8dx
@GilbertHernandez-eg8dx 6 ай бұрын
that game sounds fun, did you made it?
@themaydayman
@themaydayman 6 ай бұрын
@@GilbertHernandez-eg8dx yeah it sucked lol, it was for my dads birthday and you just walk around with no air control and have to get all the grass but the controls are annoying and also I stopped the thread for delay back then cuz I didn’t know about subroutines so everything stopped whenever you got grass, it’s on my itch though the-mayday-man itch io
@calibr0636
@calibr0636 4 жыл бұрын
thanks man i recreated everything for 2 hours just to find out that you can download it but a really great tutorial, hope to finish this playlist soon before the game jam starts. i am a beginner joining a game jam, which is really stupid if you ask me.
@alphacode5
@alphacode5 4 жыл бұрын
I know this comment is 5 months old but I'm having the same experience in a few weeks, how was it for you?
@wyattmeyer8703
@wyattmeyer8703 4 жыл бұрын
I mean that just means that you will understand it better than us "smart" people so you will really be the smart one
@skyline2601
@skyline2601 4 жыл бұрын
what is the point in downloading this?
@Without_Context
@Without_Context 4 жыл бұрын
i change Code and its now work for 3D games using UnityEngine; public class CharacterController : MonoBehaviour { [SerializeField] private float m_JumpForce = 400f; // Amount of force added when the player jumps. [Range(0, 1)] [SerializeField] private float m_CrouchSpeed = .36f; // Amount of maxSpeed applied to crouching movement. 1 = 100% [Range(0, .3f)] [SerializeField] private float m_MovementSmoothing = .05f; // How much to smooth out the movement [SerializeField] private bool m_AirControl = false; // Whether or not a player can steer while jumping; [SerializeField] private LayerMask m_WhatIsGround; // A mask determining what is ground to the character [SerializeField] private Transform m_GroundCheck; // A position marking where to check if the player is grounded. [SerializeField] private Transform m_CeilingCheck; // A position marking where to check for ceilings [SerializeField] private Collider m_CrouchDisableCollider; // A collider that will be disabled when crouching const float k_GroundedRadius = .2f; // Radius of the overlap circle to determine if grounded private bool m_Grounded; // Whether or not the player is grounded. const float k_CeilingRadius = .2f; // Radius of the overlap circle to determine if the player can stand up private Rigidbody m_Rigidbody; private bool m_FacingRight = true; // For determining which way the player is currently facing. private Vector3 velocity = Vector3.zero; private void Awake() { m_Rigidbody = GetComponent(); } private void FixedUpdate() { m_Grounded = false; // The player is grounded if a circlecast to the groundcheck position hits anything designated as ground // This can be done using layers instead but Sample Assets will not overwrite your project settings. Collider2D[] colliders = Physics2D.OverlapCircleAll(m_GroundCheck.position, k_GroundedRadius, m_WhatIsGround); for (int i = 0; i < colliders.Length; i++) { if (colliders[i].gameObject != gameObject) m_Grounded = true; } } public void Move(float move, bool crouch, bool jump) { // If crouching, check to see if the character can stand up if (!crouch) { // If the character has a ceiling preventing them from standing up, keep them crouching if (Physics2D.OverlapCircle(m_CeilingCheck.position, k_CeilingRadius, m_WhatIsGround)) { crouch = true; } } //only control the player if grounded or airControl is turned on if (m_Grounded || m_AirControl) { // If crouching if (crouch) { // Reduce the speed by the crouchSpeed multiplier move *= m_CrouchSpeed; // Disable one of the colliders when crouching if (m_CrouchDisableCollider != null) m_CrouchDisableCollider.enabled = false; } else { // Enable the collider when not crouching if (m_CrouchDisableCollider != null) m_CrouchDisableCollider.enabled = true; } // Move the character by finding the target velocity Vector3 targetVelocity = new Vector2(move * 10f, m_Rigidbody.velocity.y); // And then smoothing it out and applying it to the character m_Rigidbody.velocity = Vector3.SmoothDamp(m_Rigidbody.velocity, targetVelocity, ref velocity, m_MovementSmoothing); // If the input is moving the player right and the player is facing left... if (move > 0 && !m_FacingRight) { // ... flip the player. Flip(); } // Otherwise if the input is moving the player left and the player is facing right... else if (move < 0 && m_FacingRight) { // ... flip the player. Flip(); } } // If the player should jump... if (m_Grounded && jump) { // Add a vertical force to the player. m_Grounded = false; m_Rigidbody.AddForce(new Vector2(0f, m_JumpForce)); } } private void Flip() { // Switch the way the player is labelled as facing. m_FacingRight = !m_FacingRight; // Multiply the player's x local scale by -1. Vector3 theScale = transform.localScale; theScale.x *= -1; transform.localScale = theScale; } } using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour { public CharacterController controller; public float runSpeed = 40f; float horizontalMove = 0f; bool jump = false; bool crouch = false; // Update is called once per frame void Update () { horizontalMove = Input.GetAxisRaw("Horizontal") * runSpeed; if (Input.GetButtonDown("Jump")) { jump = true; } if (Input.GetButtonDown("Crouch")) { crouch = true; } else if (Input.GetButtonUp("Crouch")) { crouch = false; } } void FixedUpdate () { // Move our character controller.Move(horizontalMove * Time.fixedDeltaTime, crouch, jump); jump = false; } }
@the_bamba_sali
@the_bamba_sali 3 жыл бұрын
thanks
@jeromeh.348
@jeromeh.348 3 жыл бұрын
thanks
@pineapplygames3340
@pineapplygames3340 3 жыл бұрын
@Cri Cat that's what she said
@Without_Context
@Without_Context 3 жыл бұрын
@@pineapplygames3340 OK
@GreatFall
@GreatFall 3 жыл бұрын
Mission complete +1 respect
@henrykuld
@henrykuld 2 жыл бұрын
Just went to Uni to study game design and development and that video have already helped me out in my first project.
@im_skrunkly
@im_skrunkly 2 жыл бұрын
my boy big brack still helping me even after the channel ended...
@sra2907
@sra2907 3 жыл бұрын
We don't want the player to walk ontop of himself hahaha, made my day!
@GibbaGods
@GibbaGods 2 жыл бұрын
me: strugles with making charachter jump. Brackeys: now its time to make our charachter crouch and this is almost as simple as jumping.
@mwenyan8773
@mwenyan8773 3 жыл бұрын
Thank you Brackeys! Your channel has been a huge help
@fuzzypanda1684
@fuzzypanda1684 2 жыл бұрын
This is great! I'm having a lot of fun with this. I'm trying to figure out how to have a cool animation when the scene starts, like the character appearing out of an electric blue sphere or something.
@fy8798
@fy8798 5 жыл бұрын
I disagree that one shouldn't spend time with a character controller. I feel the opposite is true. Using a premade script is the worst possible choice, because you don't learn the basics. Movement teaches you more about unity than most people realize. For example, choosing HOW you move (modify velocity directly? Add forces? Transform and your own physics) will already teach you the differences between the kinds of forces unity uses. I've picked "modify velocity directly", for example, but that then causes other things to learn, particularly about how the physics engine works. Problems crop up, like moving into walls stopping falling, which teach you even more about the physics, and the solution naturally teaches you raycasts (as you want to make a check if your character is grounded, which requires raycasts). You also learn right here how gravity works, and that to solve this issue, you'll have to add gravity to your velocity "manually", so the movement into the wall doesn't cancel it out, which it normally does. And then there's moving platforms, which in itself offers multiple solutions, and teaches you even more. I wouldn't even have known about many of the intricacies of unity, especially when it comes to physics, if I had just picked a pre-set assets.
@sensei9767
@sensei9767 5 жыл бұрын
That is very true. It does depend on how deep you want to go into coding, but if you're serious about learning how to code games you should at least try it.
@manakaYT
@manakaYT 5 жыл бұрын
mind you give me a source to learn all about this physic scripts?
@sensei9767
@sensei9767 5 жыл бұрын
I know things from different tutorials, trying them out and looking them up, I don't know a good tutorial that explains everything.
@fjjfccjjgvnkcbjb157
@fjjfccjjgvnkcbjb157 5 жыл бұрын
Fen Y it is simple! public float bulletSpeed; public int bullets; public int maxBullets; [SerializeField] private GameObject bulletPrefab; void Start(){ bullets = maxBullets; } void Shoot(){ if (Input.GetKeyDown("F")){ Bullet = Instantiate.bullet.object bullets -= 1; } }
@vaskedagame880
@vaskedagame880 5 жыл бұрын
i actually like walls stopping the player, it stops him but if hes sticcking to it too much, the force eventually pulls him. but I apsolutely agree!
@billdosk
@billdosk 4 жыл бұрын
for those who has the problem where the jumping animation keep looping in mid air, in unity in assets go to the folder in which you keep the animation folder once you found your jumping animation click on it once, and then look at the inspector,un check the loop options,after that just to make sure u have a good animation,increase the duration between the first frame and the second frame of your jumping animation,that should do the trick
@RHCIPHER
@RHCIPHER 3 жыл бұрын
i found the problem with jumping animation should put exit time to 1
@surylanramadu7826
@surylanramadu7826 3 жыл бұрын
@@RHCIPHER No that just loops it if the animation doesnt fully play: (
@loni4891
@loni4891 3 жыл бұрын
@@cloudythb did you put a box collider 2D on your platform ?
@loni4891
@loni4891 3 жыл бұрын
nvm it's on a player controller then uuuuuh
@sameerop7860
@sameerop7860 3 жыл бұрын
player layer is not there when we choose what is ground please help
@fieryninja2374
@fieryninja2374 2 жыл бұрын
I don't know how you are so good. Hope you come back to making this amazing content!
@MrLuchs
@MrLuchs 3 жыл бұрын
Thank you! This solved so many problems in my project
@epfstudio
@epfstudio 3 жыл бұрын
Oh MrLuchs auch hier xD
@vaney2657
@vaney2657 2 жыл бұрын
bei mir funktionirt der bewegungs code nich
@tzeakarecords5055
@tzeakarecords5055 3 жыл бұрын
This tutorial: You can do this in maxim 25 minutes. Unity: No Me: After 5 hours working, you say " no"?
@wildgamer217
@wildgamer217 2 жыл бұрын
So true
@mrman7009
@mrman7009 4 жыл бұрын
A Fix for: "NullReferenceException: Object reference not set to an instance of an object PlayerMovement.FixedUpdate () (at Assets/PlayerMovement.cs:26)": - Go to the player (click on him) - Under "Player Movement (Script)", next to "Controller"; if it says "None (Character Controller 2D)", you need to change this to "Player (Character Controller 2D)" by clicking the little bullet-point icon to the right of the text box and selecting "Player".
@Ryan2511
@Ryan2511 4 жыл бұрын
Thankyou so much I didn't know why this was happening
@RavinderSingh-br1uo
@RavinderSingh-br1uo 3 жыл бұрын
Thanks a trillion!!! I was just about to quit, u just saved me
@sreyasprogrammer5557
@sreyasprogrammer5557 2 жыл бұрын
thank you so so much, i almost restarted.
@warredeckers6483
@warredeckers6483 2 жыл бұрын
You saved me Mr. Man, you were my only hope.
@Leyfindrake
@Leyfindrake 2 жыл бұрын
you are a god, thank you so much
@becauseimtobyfilms3559
@becauseimtobyfilms3559 3 жыл бұрын
Brackets you are the best ever love your channel so much you actually explain it instead of telling us to do it
@Sketchy144
@Sketchy144 3 жыл бұрын
Ok I noticed one why the "always crouch" effect happens: when you define every layer, including the player's, as ground AND the ceiling check is within the player's box collider.
@giorgosotuposapotofrontist4992
@giorgosotuposapotofrontist4992 3 жыл бұрын
Thank you so much i have been trying to fix this for over an hour
@MurderApp
@MurderApp 3 жыл бұрын
Hey what do you mean by "the ceiling check is withing the players box collider"? I changed the layer of the player from default to player but im still haveing the problem.
@MurderApp
@MurderApp 3 жыл бұрын
Nevermind! there was an error in brackeys code from the description on line 67. There wasnt supposed to be an ! infront of the word crouch
@lordawid
@lordawid 3 жыл бұрын
@@MurderApp thank you so much bro
@doctorgamer0186
@doctorgamer0186 2 жыл бұрын
@@MurderApp Thank you very much, saved me a headache.
@MakoRuu
@MakoRuu 2 жыл бұрын
I didn't realize it was so complicated to get a character to move.
@stoan5776
@stoan5776 5 жыл бұрын
Yes we want to see animation!! And wallsliding in 2d!!
@chariouibouchaib4416
@chariouibouchaib4416 5 жыл бұрын
yes , that's what we want :))
@UBassBoostHD
@UBassBoostHD 5 жыл бұрын
That would be great!
@lilal87
@lilal87 5 жыл бұрын
Please
@sink899
@sink899 5 жыл бұрын
You could do a wallslide by raycasting to the left and right of the player to see if there is a wall, and checking if the player is moving towards said wall, where you could then lower the gravity the object feels while it's on the wall to make it fall slower to simulate a slide.
@Maik8885
@Maik8885 5 жыл бұрын
Yeah, *YAY!
@MitazasAlways
@MitazasAlways Жыл бұрын
I came back Brackeys for seeing your videos after 1 year!!
@BoxChicken137
@BoxChicken137 3 жыл бұрын
if your character does a small bounce when you move on a flat surface try adding composite collider and add use composite onto the other collider, took me 8 hours to fix so ill save you some time
@bopatomen8864
@bopatomen8864 3 жыл бұрын
I did that but it still didnt work:(
@BoxChicken137
@BoxChicken137 3 жыл бұрын
@@bopatomen8864 is the green collider one big shape or mutipul little green squares
@rohanpatel2608
@rohanpatel2608 5 жыл бұрын
A wall grab and wall jump tutorial would be great!!!
@xavmanisdabestest
@xavmanisdabestest 5 жыл бұрын
Quill 18 has an amazing character controller that includes that if you don't want to wait for brackys to make one :)
@Natsumi170
@Natsumi170 5 жыл бұрын
That's extremely easy. If (boolean "is touching wall" and boolean " is in the the air") {If (player presses jump button) Jump()} Wall jumping is enabled by default in Unity because you haven't programmed a way to check if the player is touching the ground, that needs to be implemented by the programmer.
@Metacious
@Metacious 5 жыл бұрын
Thank you, I'm trying that :D 3 booleans, one for touching ground tiles (previously tagged/with a ground class), one for walls and one for "while in the air" (when no ground or wall is checked, but it could be avoided if I just use wall and ground == false) Wonder if I can give types to tiles using Unity tilemap
@kahlialynch2504
@kahlialynch2504 5 жыл бұрын
Or you can add a physics material and bump the friction up to one
@TimTraV
@TimTraV 5 жыл бұрын
Is there a way to create levels using tilemaps and collision is already set up? Because I'm having struggle creating decent slope collision. Edit: Google is your friend.. if anyone else is looking for this -> there is a component called "tilemap collider 2d". Just add it to the gameobject with your ground and wall tiles.
@helderlimaletsgo
@helderlimaletsgo 5 жыл бұрын
Thank you!
@CodMinecraftstyle
@CodMinecraftstyle 5 жыл бұрын
many kisses
@hilopeepoles1
@hilopeepoles1 5 жыл бұрын
Thankyou so much!!
@0Arman0
@0Arman0 5 жыл бұрын
u sir, are a gentlemen and a scholar
@kunaltiwari3683
@kunaltiwari3683 4 жыл бұрын
No way you just saved me XD
@boniebob7200
@boniebob7200 3 жыл бұрын
Life saver, as always. Thank you!
@ThatRandomError
@ThatRandomError Жыл бұрын
how would i use the box and circle hitboxs detect if i can wall jump conditions: ankels touchs wall
@Arnmazing23
@Arnmazing23 4 жыл бұрын
You should do a series of teaching the Unity documentation/API.
@heisocean344
@heisocean344 4 жыл бұрын
Ok, so I feel compelled to add some of my own advice here. I was having the issue where my character is just constantly crouching upon hitting play. At first, I tried following Kota Pok (Parent of this comment thread) advice. His advice in his #4- the bit about changing the character controller script- that worked and made my character behave normally interms of being able to crouch and uncrouch. However, my character would allways stand up when I stop providing crouch input, even when there was a ceiling above him. In the end- I found that Brackey's chosen settings for his Player's "What is Ground" variable was throwing off my particular geometry for my colliders. The "What is Ground" variable can be modified in the "Characer Controller 2d (Script) section in your Player's Inspector in Unity. @3:10 Brackey's instructed us to set the "What Is Ground" variable to "Everything" and then unselect "Player" This ended up making everything mess up when it was time for detecting crouch collision. Basically, what I believe was happening (I'm still just a beginner), the "What is Ground" variable was being set to any of the other layers that we checked in that step. Consequently, when the collision check was being conducted between the ciling object and the ground object, whatever the ground was being set to was so far away that no collision was being detected between the two, and your player is being permitted to stand up because of that. So, what I did was- Like Kota Pok said in the parent comment, set "k_CeilingRadius" to .05f instead of .2f In Unity editor- Select Player and under Character Controller Script in the Player inspector, select the exact layer (or layers) you need to be the ground. For me, all of the platforms and terrain and obstacles I had set to my middle layer, so I could easily just set "What is Ground" to my middle layer. Do not use Kota Pok's 4th suggestion if this sounds like your problem
@ParkMyFreak
@ParkMyFreak 3 жыл бұрын
so, should the ground(the one I am walking on) and crouchpiece(the one I am trying to duck under) be same layers or diferent?
@scratchtutorials1068
@scratchtutorials1068 3 жыл бұрын
Bro you helped me
@casualtea7973
@casualtea7973 3 жыл бұрын
very very helpful thank you
@azazel460
@azazel460 3 жыл бұрын
i dont understand what u mean by "kota pok's comment thread" is it someone that commented some advice here? cause im trying to find his comment but i can't
@Pralyth
@Pralyth 3 жыл бұрын
Ya I am curious about the "kota pok's comment thread" bit as well. I am having the same issue where my character is constantly crouching even when the crouch variable is set to false.
@tejanbah3216
@tejanbah3216 2 жыл бұрын
when you find that you are unable to crouch go to "Character Controller 2D" then go to line 67 change (!Crouch) to (Crouch)
@anthonyrudasics570
@anthonyrudasics570 2 жыл бұрын
Thanks, that worked!
@arhziz
@arhziz 2 жыл бұрын
thanks
@direpants4646
@direpants4646 2 жыл бұрын
you're very attractive
@plagx3428
@plagx3428 2 жыл бұрын
Thx. My box collider was just turning on and off in infinit loop- this (!Crouch) was the problem:)
@mr.midnight7681
@mr.midnight7681 2 жыл бұрын
Great vid, as always! Wish you were still making these.
@stellarestuary589
@stellarestuary589 5 жыл бұрын
Hey, in case it goes over your head like it did for me because I missed it at the beginning of the video: don't forget to put Colliders on your floor and your platforms (a Tilemap Collider preferably!) or the player will fall and you'll scratch head wondering why!
@HannahSmeal
@HannahSmeal 5 жыл бұрын
Hahaha a few hours of scratching your head
@thedruid1105
@thedruid1105 5 жыл бұрын
@stellarestuary thanks to you i didn't have to spend more than 30 min :P
@babitadeboer6338
@babitadeboer6338 4 жыл бұрын
yes like me . scratched my head into oblivion. Thank you!!!
@ziggykac
@ziggykac 5 жыл бұрын
If your player is always crouching, but you want the player to automatically crouch when it's under something, dont change the controller script to if (!crouch). Make a "player" layer and uncheck it from the "What is Ground" thing and then choose that layer for the player.
@milesmumme3611
@milesmumme3611 3 жыл бұрын
Me: tries to drag and drop the character controller. Unity: N O
@pansletteland7670
@pansletteland7670 3 жыл бұрын
same
@pansletteland7670
@pansletteland7670 3 жыл бұрын
@Sir monkeyman thanks
@LordDawnWreaver
@LordDawnWreaver 3 жыл бұрын
@Sir monkeyman I did that and it still will not work
@tylerfrancois2194
@tylerfrancois2194 3 жыл бұрын
drag it into assets and from there drag it onto your player
@LordDawnWreaver
@LordDawnWreaver 3 жыл бұрын
@@tylerfrancois2194 tried it didn't work
@johnbrown7373
@johnbrown7373 3 жыл бұрын
For anyone who turned up the gravity and are wondering why their character jitters when they land (or sometimes fall through the floor), set the collision detection on the player's rigidbody to continuous.
@FinnAHuman
@FinnAHuman 3 жыл бұрын
@G19tube Gkouk You need to create it. Go Layer -> Add layer... and name any User Layer(in video it is 8) as Player
@FinnAHuman
@FinnAHuman 3 жыл бұрын
@G19tube Gkouk save your script
@pikapikalis
@pikapikalis 2 жыл бұрын
17:58. Don’t mind me I’m just marking my spot
@imd71085
@imd71085 3 жыл бұрын
thank you for this excellent tutorial. I just have one problem, when i click jump the animation works perfectly but when i click again without waiting 2s the player jump with idle animation.
@Kooczsi
@Kooczsi Жыл бұрын
this is the movement video not the animation
@BluncoGaming
@BluncoGaming 2 жыл бұрын
WOW!! I just learned something new that I wasn't trying to learn. You should put the background as a child of the camera so that it follows it.
@blockay4392
@blockay4392 3 жыл бұрын
Me: Does everything right Unity: Me: Wait, Unity, are you actually going to let me do this without you saying "NO" Unity: Yeah you win this time I will let you do what you want and it will work Me: aw thanks man Unity: RIGHT AFTER YOU FIX ALL THESE COMILER ERRORS! Me: AHHHHHHHH!
@derboyderg1467
@derboyderg1467 3 жыл бұрын
I can 100% relate to that
@wssoup
@wssoup 3 жыл бұрын
Update to a newer version, unity 2020.2 has no errors.
@sameerop7860
@sameerop7860 3 жыл бұрын
player layer is not there when we choose what is ground please help
@polly5229
@polly5229 3 жыл бұрын
@@sameerop7860 you have to create the layer yourself i assume. Theres an ADD LAYER setting when you choose a layer.
@sameerop7860
@sameerop7860 3 жыл бұрын
@@polly5229 thanks for your help I figured it out now
@maximusTVfull
@maximusTVfull 3 жыл бұрын
How I can stick to slopes? Right now my player sliding down from any slopes. I need to add something to CharacterController2D class I guess.
@oscarlenkowiec5817
@oscarlenkowiec5817 4 жыл бұрын
Hi! I'm a huge fan of your videos, but I really think it would be helpful if you created a follow up video explaining how to use tile map colliders??? Sorry, I'm just really confused with how they work and can't seem to find any good explanations anywhere 😂
@thatonewar6328
@thatonewar6328 5 ай бұрын
i know you made this 4 years ago but i used tilemap colliders and they didn't really work they were super buggy so i just used edge colliders and box colliders it was more and took time but it was easier and didn't break
@chriswhitmire4167
@chriswhitmire4167 3 жыл бұрын
Just a note for people who may want to do this project. If you use the character controller script as given, then the player will always crouch. But if go to line 67 of the character controller code and change it to *if (crouch){* instead of *if (!crouch){* , then this will fix that issue.
@jadenreece5866
@jadenreece5866 Жыл бұрын
This is exactly what I needed thank you!
@mihaimitrica1506
@mihaimitrica1506 3 жыл бұрын
Hey, guys. I really hope you can help me with something that I've been strugling for weeks. I've almost completed a project and I've used these scripts for movement. I modified it a little bit so I could use a Joystick instead of buttons for jumping and crouching. The problem is that if I hold the Joystick up, the character will jump, hit the ground, then jump again and so on. And no, I don't mean that it's flying, it just keeps on jumping BUT the 'IsJumping' bool remains 'true' in this proces so the animation for jumping will be played only once. More than that, it's inconsistently jumping in height. Sometimes jumps higher, sometimes lower. Pls, help me if you have any ideas...tried looking up this problem on the entire Google but found nothing of this sort....
@heximy7501
@heximy7501 4 жыл бұрын
For some reason, when adding a tile map collider, my ramps have a higher collider box than the actual ground, making it impossible for the character to walk up without jumping. I can't find a way to readjust the collider so I was wondering if there is any way of fixing this?
@peterbunschoten
@peterbunschoten 4 жыл бұрын
I found the fix! Go back to the Sprite Editor, and at the top left click on the "SpriteEditor" dropdown and select "Edit Physics Shape". Then define your sprite's physics shape.
@ezioblazesit9017
@ezioblazesit9017 3 жыл бұрын
How do you get your code to look like that on Visual Studio?
@khudkhed2955
@khudkhed2955 2 жыл бұрын
me at the beginning of the coding part: "i dont understand anything" In between the jump and crouch part: "I UNDERSTAND IT!!!!" at the end: "no i dont"
@dustyfish8
@dustyfish8 3 жыл бұрын
Amen brackeys, always making my day better.. :)
@silverstarling6207
@silverstarling6207 4 жыл бұрын
I have issue with infinite crouch too. In my case the problem was with my "Player" size. CharacterController script have "k_CeilingRadius" constant equals to .02f. And my player was so small what my ceilingCheck object always interact with ground because radius of ceiling check was bigger than my character.
@rodzme361
@rodzme361 3 жыл бұрын
I was having the issue below: NullReferenceException: Object reference not set to an instance of an object PlayerMovement.FixedUpdate () Here's the solution that worked for me: In Unity, click on your player and check the Player Movement script in the Inspector window. The Controller parameter will be set to "None (CharacterController2D)" by default. Click on the arrow on the right and change the controller to your player and that should do the trick!
@TriActixn
@TriActixn 2 жыл бұрын
OH my... thank you so much lol
@lorenazn6567
@lorenazn6567 2 жыл бұрын
YES ! THIS IS IT! TY !!!!!!
@pikachiu6345
@pikachiu6345 2 жыл бұрын
Don't know bout you guys but i got it right the first time..payed a lot of attention :) thank you Brackeys, if one day i might get rich i'm gonna give you some of my earnings, cheers!
@rhydonculous5752
@rhydonculous5752 3 жыл бұрын
Are there any videos or writing that go over the Character Controller 2D script in detail? It looks like the only way to edit the variables and their values is by changing the script outside of Unity and reimporting it. I’m sure this was intended for people who try and mess with it while following this tutorial. Loved the video btw! Really good stuff :)
@astral4883
@astral4883 4 жыл бұрын
Hey Brackeys, I would really like to know what each character in C# stands for. For example, what does this () mean, and when to use it, or what does this mean and when to use it, or what coloured words (Rigidbody/Transform/Vector3) stand for, and how we can combine all these to make a code that Unity understands. I've watched tutorials for C#, and even though I can technically understand how a script is executed, I still can't understand why in some paragraphs, you have these (), , coloured Words.
@Kooczsi
@Kooczsi Жыл бұрын
its different ways of referring to things so that unity understands your code
@Kooczsi
@Kooczsi Жыл бұрын
the coloured words are for quality of life probably and its easier to remember when colors are involved
@Knuddelfell
@Knuddelfell 3 жыл бұрын
Can you do a video on building a 2D J&R-Game from Scratch (:
@henryxXfun_timesXx
@henryxXfun_timesXx 8 ай бұрын
if you dont mind me asking but how did you make it so the player wouldn't collide with the background tile map (the dark bits under the platforms) because mine wont even when i remove the tilemap collider and set the layer to the one which the player ignored.
@func_e
@func_e 2 жыл бұрын
Miss these guys....
@palomamorais5079
@palomamorais5079 4 жыл бұрын
THANK YOU SO MUCH!!! So easy to understand, my script was so big, a totally mess. Thanks to this video now is clean and very effective. Now my hero has a fluid movement.
@aligonia
@aligonia 3 жыл бұрын
If anyone is getting compiler errors there is a good chance that your Unity and Visual Studio aren't configured to work with each other yet and things like CharacterController2D aren't being recognized as classes. This is the solution below: In Unity Editor Go to Menu, Click on Edit -> Preferences -> External Tools -> External Script Editor. Set it to Visual Studio (your installed version of VS). Now in Menubar go to Edit -> Project Settings -> Player Settings -> Other Settings -> Under Configuration -> Check API Compatibility Level -> Change it to your installed .Net version. In my case I set it to .Net 4.x Then just restart VisualStudio and it should start recognizing the classes.
@aruiroth0
@aruiroth0 3 жыл бұрын
Man,,, how can i THANK YOU!!!!
@jacobmclerran3870
@jacobmclerran3870 3 жыл бұрын
This helps SO MUCH Thank you
@samarpan02
@samarpan02 3 жыл бұрын
Very very much tq may u live 109yrs
@masreklaw6441
@masreklaw6441 3 жыл бұрын
thanks but still doesn't recognise it
@weirdoisop8487
@weirdoisop8487 3 жыл бұрын
thanks dude, cant thank enough
@darmblesvlogs
@darmblesvlogs 3 жыл бұрын
When brackeys mentioned a controller i plugged mine in and sure enough it worked! Tbh havent felt so happy about a controller working before .... maybe its because its 3 am and im still sat here coding? 🤔
@cocoad1034
@cocoad1034 3 жыл бұрын
please help when i try to move my character, it just says, NullReferenceException = reference not set to object Edit: i realised that i hadnt dragged controller into the slot so ye
@nemanjaschweis1756
@nemanjaschweis1756 5 жыл бұрын
I'm coming from 2029 and i can tell you Brackeys is still one of the best teachers
@arokumi5811
@arokumi5811 4 жыл бұрын
all i care about is that barca is awful
@AlphaToast27
@AlphaToast27 4 жыл бұрын
then why the fuck doesn’t this work
@Fraket
@Fraket 5 жыл бұрын
I am using Unity 2018.2. When I jump, using this tutorial, my character moves a lot faster. I don't notice this happening in the video. Any help would be appreciated.
@cylime
@cylime 11 ай бұрын
I’m gonna have to watch this like tones it was very helpful ty
@henrikmader949
@henrikmader949 3 жыл бұрын
great tutorial, thank you!
@strogarth6752
@strogarth6752 4 жыл бұрын
For all those whos crouch is not working there is a mistake in the downloaded controller. All you do to fix it is go to line 67 and change (!crouch) to (crouch), the script dev must of made a mistake in recent updates.
@hippotato4863
@hippotato4863 4 жыл бұрын
Thank you so much, you actually saved me!!!!!! I was so confused
@lorenzsubaan4288
@lorenzsubaan4288 4 жыл бұрын
crouch is not working
@Teiske
@Teiske 4 жыл бұрын
@Huran How did you solve iy then?
@atty1337
@atty1337 3 жыл бұрын
wow thank you so much :D
@tamizhankeyframe6365
@tamizhankeyframe6365 5 жыл бұрын
We want nex series of character ctrl + animation + particles
@Stef-an
@Stef-an 3 жыл бұрын
I had no idea the offspring of Jake Gyllenhaal and Daniel Radcliffe could make gameDev look so easy. Just kidding, thanks a lot for doing these tutorials mate, you are a godsend for junior game developers!
@suryamdg
@suryamdg 2 жыл бұрын
For those people who can't afford to donate on patreon you can kind of pay him by waiting till the very end of the video for another ad to show up
@arokumi5811
@arokumi5811 4 жыл бұрын
how do you get the inclines to have a smooth triangle, mine are bumpy so when my player goes up it bumps
@davidchenoweth3457
@davidchenoweth3457 4 жыл бұрын
he is probably using a Edge Collider 2D and forming it by hand, this gives a smooth incline rather than going for a pixel by pixel
@ZupaTr00pa
@ZupaTr00pa 4 жыл бұрын
@RHYSIMUS Late but very helpful :)
@squrdyt5734
@squrdyt5734 5 жыл бұрын
To everyone commenting about this being bad for beginners I believe he made the code for people who aren't invested into CS yet so he wants the beginners to not have to do the boring stuff and lose interest before they get to see how awesome CS is.
@CringeYoutubeName69
@CringeYoutubeName69 5 жыл бұрын
bro no matter when they do it it wont change the fun factor
@kilianlang3316
@kilianlang3316 5 жыл бұрын
as a beginner who has never worked with unity before I found this video quite confusing... It seems like he's doing magic over there. He just writes 'jump' and through some wierd mysterious magic process it somehow works. Where did he tell the program how jumping should work? How did all of that happen. I am so confused right now....
@hyperpengu8722
@hyperpengu8722 5 жыл бұрын
@@kilianlang3316 this is a joke right? r/wooosh? now IM confused :/
@tobihudiat
@tobihudiat 5 жыл бұрын
C++ and C# is not the same (I've learned C++ but I need for Unity C# :/)
@NuclearHonzo
@NuclearHonzo 4 жыл бұрын
@@kilianlang3316 Then you shouldn't start off with this video then...
@chiragbiswas8850
@chiragbiswas8850 3 жыл бұрын
Whenever he used to tell however I used to hear harbor Which was really funny 😂
@Robin_H.I
@Robin_H.I 9 ай бұрын
i tried to use this and i could not get the code to work sadly any know fix or so?
2D Animation in Unity (Tutorial)
21:53
Brackeys
Рет қаралды 2,4 МЛН
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 3,7 МЛН
Who enjoyed seeing the solar eclipse
00:13
Zach King
Рет қаралды 137 МЛН
路飞关冰箱怎么关不上#海贼王 #路飞
00:12
路飞与唐舞桐
Рет қаралды 5 МЛН
Зомби Апокалипсис  часть 1 🤯#shorts
00:29
INNA SERG
Рет қаралды 6 МЛН
How to make a Video Game - Godot Beginner Tutorial
1:17:12
Brackeys
Рет қаралды 719 М.
Brackeys Game Jam 2020.2 - BEST GAMES!
11:31
Brackeys
Рет қаралды 538 М.
The ULTIMATE 2D Character CONTROLLER in UNITY
15:21
Shinjingi
Рет қаралды 65 М.
TOP DOWN MOVEMENT in Unity!
22:30
Brackeys
Рет қаралды 1,2 МЛН
How to make a 2D Game in Unity
14:28
Brackeys
Рет қаралды 6 МЛН
Code Class - 2D Player Movement in Unity
29:02
AdamCYounis
Рет қаралды 21 М.
INSANE OpenAI News: GPT-4o and your own AI partner
28:48
AI Search
Рет қаралды 288 М.
The Future of Game Development
8:58
Brackeys
Рет қаралды 1 МЛН
MELEE COMBAT in Unity
21:07
Brackeys
Рет қаралды 1,6 МЛН
How To Make 2D Platformers (Unity Fundamentals Tutorial)
32:55
Thomas Brush
Рет қаралды 598 М.
Who enjoyed seeing the solar eclipse
00:13
Zach King
Рет қаралды 137 МЛН