Let me know if you have any issues or questions, I'll try to help as much as I can. FAQ: 1. If your autocomplete is not working try this: ruclips.net/video/g3sHbFmzq3I/видео.html&ab_channel=qubodupDev 2. If you're getting an error that says “Can’t add script component ‘player movement’" make sure to not include spaces in your script name and not rename it after creation. 3. Save your script by pressing Ctrl+S everytime you want to go into Unity and test it 4. Here's the complete code for those who are having issues: pastebin.com/TCJ97R78
@@SuperSimply9 that's solved in the next video: ruclips.net/video/Gf8LOFNnils/видео.html Basically you allow the player to jump only when he's on the ground
when i double click my script, it tells me which app do i want to open it on, and i have no clue what to do and i am scared if i do something wrong i will mess everything up
I remember trying to do Unity in the past, and I've never gotten too far, because there is so much content... and then I see this video, that shows that the movement code is VERY easy, and, unlike those other tutorials, you actually explain what each thing actually does, allowing me to learn as if I'm watching a legit tutorial, which this video is exactly. This is VERY helpful!
It's very overwhelming when you're trying to learn everything at once, been there myself. If you split it into small parts you're gonna make good progress. Very glad to hear that it's been helpful, good luck!
I've watched so many tutorials over the past few weeks and every single one didn't understand what a beginner was, they would go way to fast and didn't explain why they were doing something. this tutorial is a gift from god and i just want to thank you so much
the trick is to just watch them all, even if it's repeated topics, it will start coming together after awhile. people just explain from different angles. this tutorial tho however, is top notch, it's from center view ground up.
The amount of you talking us through it is perfect. Amazing video to start this journey. Thank you so much for your hard work and see you at the end (:
I screamed "IT MOVES" when with this tutorial I finally learned how to type simple controls. You don't even have an idea how excited I am now. Thank youuuu
@@PandemoniumGameDev Sure thing I did, still working on it though. I'm currently going through your second guide and think I'm doing well so far. All thanks to you
Just downloaded Unity. Was looking for a short and brief tutorial on how it works, but only found hour long ones. Thanks mate for the tutorial, really helped me out.
The tutorials are frankly awful. Never mind baptism of fire, it's baptism in a blast furnace - you should not be going straight from installing Unity into a prebuilt FPS with no explanation of anything else, but that's what they want you to do. I say this as someone who has been dabbling in game coding for a good while now and has also enjoyed using Unreal. Unity just doesn't do it for me and leaves me feeling very impatient and stressed.
I wish I could like this video a million times! Do you know how long I have been searching for a tutorial that explains things thoroughly and moves at a pace that a beginner like me can follow? This tutorial is actually perfect! You have earned a subscriber, my friend!
I am building a video game so my brother can believe in his game design dream. I am also sending him this video when I finish making it, so he can make it himself. Thank you so much for being the beginning of his journey. ❤
im new to Unity that was a very good Tutorial btw the one mistake with the Vektor3 was pretty neat because now i definitely know what the number is standing for, and probably wont forget it compared to other things i learned
Thank you for giving such a detailed walkthrough, too many tutorial videos out there just rush through steps, without explained what they're doing, and why they're doing it. Your style of demonstration makes it much easier to follow along and learn from 👍
I'm very much a beginner, and I've watched so many tutorials recently that just explain how to do something but never why I'm doing it. This was perfect though, pacing was great and I finally understand what's going on! Thank you!
You guys having issues with auto fill go to Unity and then Edit > Preference > External Tools > External Script Editor and pick Visual Studios in the drop down menu, be sure to close Visual Studios and reopen after you do it. This will hopefully make it easier for you guys, rather than having to watch a video about it! Good luck.
Hi, I rarely like, comment or subscribe on any videos. But I just wanted to let you know that you have made an amazing set of tutorials that are extremely easy to follow. Everytime you stop to explain something it's just within a reasonable time to not lose focus. Thanks alot!
This is top tier. The amount of 4 hour tutorials that dont explain anything is crazy, and so often ive ended up confused and stranded whenever something doesnt work (probably because of a mistake i made) but this actually helps me gain a proper understanding of unity. I know gcse level python so you explaining how c++ in operates in some ways helped me make the connections and just actually know whats going on rather than blindly following a shit video.
I would like to thank you for such a good tutorial that not only goes over the basics but also explains them in a way that anyone can understand. Other tutorials online just blab and introduce new words and functions left and right without teaching how the stuff works in the first place.
I LOVE that you explain everything properly, please please please talk more it's what actually makes me understand this stuff! Thank you so much for this tutorial! :)
Wow! I think I'm in the right place after a long search. Why this video is so underrated!!! You have a very straight forward and clean way of explaining stuff. I hope I'm gonna learn to develop 2D Platformer with you. Thanks a lot for making this series ❤❤❤
it's been 3 years but i'll still comment lol. I am trying to get into game development and this tutorial finally made me feel like i understood something instead of copying it all. thanks
Awesome! I like the more detailed explanation personally. Most tutorials just tell you to write this and that’s how it’s done without fully explaining why it works. You’ve earned yourself a new sub!
Oh man, this is great. I went to add more speed and accidentally increased the Edge Radius by 10 so the Player just flew into the air. Fun times. I thank you for making these tutorials and being super thorough on what commands do what. I plan to watch and use them all.
I'm really excited after watching this. Seeing things explained step by step like this makes me believe I can do this. I want to make a game for my nephew. He only cares about one thing -- playing video games. I am quite similar lol I want to make a game with his input along the way that we will both enjoy playing.
My man just saved my life XD My game design teacher sucks and really hasn't taught anything. He just links RUclips videos and they are so hard to follow as a beginner. I rarely comment but thanks bro for an actually great tutorial.
I've been trying to find in depth 2D unity tutorials for the past week, yours is the first one that actually explained to me what each piece of code does, thank you so much for this!!!
I had watched someone elses tutorial before not knowing anything and ended up just copying line for line what they did, and in the process learning nothing. THANK YOU for actually explaining why and what the function of what you're doing is. Before this, I watched Brackeys "Coding in C#" series he posted before he took his break and now I understand what a float does, boolean, etc., ! In fact, I'm making a master doc of things I'm learning so that I can either reference in the future or be able to understand why or how something operates, not just that it does. For the first time, I can actually see what I'm doing and the reason behind it, as I said, I had no coding experience before this or Brackeys video series. I actually was able to add some off my own floats or finish what you were doing before you said it, which means at some level, I'm able to write my own code. Thanks SO MUCH
After writing the script with your video, I went back and watched again and put comments over all of the statements, describing what they do in my own words. It really helped the concepts sink in.
Finally,I have tutorial that going to make me finished my coding class in college and sent it to teacher! And,I love how you add a little bit humor in it make this fun to watch instead of throwing info dump in it without pause!
i'm gonna end up watching this whole playlist like 10 times, i'm sure. Back again to reiterate how comprehensive these videos are and how much i appreciate them =)
Man dude, youve got some talent for tutorials. I like how you explain what each line of code does. It makes it really easy to understand. Thanks + Nice job!
thank you so much, took me 3 tries to do the code for some reason, but i got it, deffo talk more, its good to know how to code something but its better to understand what its actually doing. Fair enough if you dont have time or dont want to but longer video is better :)
i had a notion i might enjoy fucking around and maybe learning to code a bit - these videos broke everything down in such a great way that i completely lost all irrational fear of trying something new. These legitimately made me feel confident i could do this AND enjoy it; i appreciate it a lot, my man
My guy this was uber helpful as an intro to C#, i have done a fair amount of python/php/javascript development for my work and just starting to get into making games as an interest. Thank you!
I need some help. after writing the exact code that you did in left-right movement chapter, i get an error message that says: "Assets\Scripts\PlayerMovement.cs(7,13): error CS0246: The type or namespace name 'RigidBody2D' could not be found (are you missing a using directive or an assembly reference?)" do you know what this means? i could not figure it out. im using the unity version of visual studio 2019. please help me out, thank you.
@@furiouslyfast424 that wasen't the problem here is the code and see what i did wrong using System.Collections; using System.Collections.Generic; using UnityEngine; public class BallMove : MonoBehaviour { [SerializeField] private float speed; private Rigidbody2D body; private void Awake() { body = GetComponent(); }
@@akaithecreator7448 here is the fixed code let me know if it worked Changes made: Added a missing semicolon after the GetComponent() line. Corrected the syntax error in Vector2 by removing the extra parentheses and provided correct parameters. Changed input.GetAxis> to Input.GetAxis. Declared a variable moveInput to store the result of Input.GetAxis("Horizontal") for readability and efficiency. using System.Collections; using System.Collections.Generic; using UnityEngine; public class BallMove : MonoBehaviour { [SerializeField] private float speed; private Rigidbody2D body; private void Awake() { body = GetComponent(); // Error: Missing semicolon } private void Update() { float moveInput = Input.GetAxis("Horizontal"); // Error: Incorrect method name and missing variable declaration body.velocity = new Vector2(moveInput * speed, body.velocity.y); // Error: Syntax error in Vector2 and incorrect method name } }
When I try to drag the player movement script onto the player it says “can’t add script component ‘player movement’ because the script class cannot be found. Make sure there are no compile errors and that the file name and class name match.”
4:55 when you rename that SampleScene to level one, what button do you press on that message box? when i press reload the 2D sprite just disappears... (and pro tip: show your cursor on your video and it will be much easier to follow)
This is amazing. I know basically nothing about unity, and very little about coding, but you made it easier to understand while also doing a great job of explaining how everything works. I feel like a lot of tutorials just tell you "Here's the code, copy it", and then you don't really learn anything. Here I feel like I understand how everything worked and it was super easy to follow.
This tutorial is actually perfect all the others go on about downloading resources and making everything look nice, but this one actually tells us things we couldn't just find out our selves easily. Thumbs up, I got the urge to pat my laptop on the back.
Please anybody I need help ‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️ when I tipe in Rigidbody2D it doesn't get colored and it doesn't work
@@lulaluptv dont worry, this happened to me too. Try fixing it by following these steps. ruclips.net/video/g3sHbFmzq3I/видео.html&ab_channel=qubodupDev
Finally a proper tutorial. This really helped, I’m glad you actually explained what you did instead of just doing stuff and expecting the viewers to know without explaining. I plan on making a 2D game where you play as a shovel digging through levels and using your abilities to get through puzzles
This tutorial is so great because even though I knew how to do some of this, I wasn't entirely sure why I was doing certain things or calling certain functions--thank you so much for the explanations!
Super detailed and fun to watch tutorial + I tried Unity a few years ago and it felt very hard and felt like I wasn't accomplishing anything, but now that I'm interested in learning Unity again I feel like I'm actually learning stuff which is really really good.
Mate, I have been watching so many videos the past few days trying to wrap my head around the most basic of features, I wanted to make a few games to see how I got on with it but most of the videos I have watched so far have been overwhelming and felt rushed or made with the expectation people had some knowledge. Your video has been thorough and very well paced, I am just getting started but I am looking forward to working through and following the rest of these! Thank you very much!
I am a complete beginner in coding and Unity and this tutorial is perfect for me. I really enjoy the explanations of what components do and how the code actually works. In a few hours I have gone from installing Unity to having a platformer with a character that can run, wall jump and shoot. Also, because of how well structured the tutorials are, when I have missed steps or things are not quite how I'd like them, regarding projectile speed etc, I know where and how to adjust it. Thanks for a great series. I have never subscribed so quickly to a channel. Great work!
Returning here 2 years after I first saw the video, I realised just now how much I have learnt. I am so grateful for your channel, everytNice tutorialng
This is a very useful and weel done tutorial, the fact that you explain what every single line of code does makes it even more interesting, as in other tutorials they just tell you to copy and paste everything. Thank you
I did new started making games with unity.Since my language is Turkish, i seached the contents in Turkish at first.But your style of narration is the best of all , i can understand very well with the help of the subtitle... Good job bro 👌
This tutorial is amazing I have been struggling to actually learn unity and not just click the same button as the video. But you actually explain the reason why you are doing something. Thanks
I've just started learning Unity by your video. I was really worried about if I wasn't going to understand what you are doing but you explained literally every single detail and thats just the thing I want. You earned a subscriber :) Keep up the good work! I am very excited for the second lesson :))
The pacing is WONDERFUL. THANK YOU for not spending 2 minutes for every action swinging your mouse cursor around talking about theoretical garbage that might be applicable three years from now.
Thank you very much for this series! I really want to develop a side-scroller, but couldn't find anything too relevant on the internet. This tutorial series is perfect and I will start applying it straight away! :)
I haven’t finished the video yet, but is so cool man 👍 you are not just writing code you are explaining the “why” of every step and that is what really helps for learning
Your Tutorial was Amazing it was the first tutorial ive watched and taught me enough so i can add on to the script without guidelines i made my own variable for the jump height i know its simple but its a huge confidence boost definitely subscribing
I keep going from tutorial to tutorial saying it's the best tutorial, but this one actually is the BEST tutorial, because it starts from absolute scratch. of a basic box and ground up.
I cant believe I am actually learning code and kinda understanding it!!! I love your explanations as they help a lot, and it even allowed me to make my own variable for jump height! Can't wait to watch the other videos for this series :D
Dude, thank you so much, you are the first ytber to actually EXPLAIN how to codes work and not just "Ok then write Bla bla bla console.write.Hello " Thank you so much, you got a new subscriber
Please talk lol it really helps man honestly ur 1 of the few that I find very straight forward and take the time to explain every little detail which I learned is very important one minor mistake can cause hours of headaches.
Let me know if you have any issues or questions, I'll try to help as much as I can.
FAQ:
1. If your autocomplete is not working try this: ruclips.net/video/g3sHbFmzq3I/видео.html&ab_channel=qubodupDev
2. If you're getting an error that says “Can’t add script component ‘player movement’" make sure to not include spaces in your script name and not rename it after creation.
3. Save your script by pressing Ctrl+S everytime you want to go into Unity and test it
4. Here's the complete code for those who are having issues: pastebin.com/TCJ97R78
@@SuperSimply9 that's solved in the next video: ruclips.net/video/Gf8LOFNnils/видео.html
Basically you allow the player to jump only when he's on the ground
Where is the link for the black squere Sprite?
@@red2go56 www.shareicon.net/data/256x256/2015/11/08/668660_box_512x512.png
when i double click my script, it tells me which app do i want to open it on, and i have no clue what to do and i am scared if i do something wrong i will mess everything up
@@PandemoniumGameDev pls
Finally a tutorial that shows u how to do it instead of taking shortcuts
Yes finally
Fr
Yeah, there are way too many tutorials using templates
Yes
Do people really assume it's common knowledge how to use C#?
I remember trying to do Unity in the past, and I've never gotten too far, because there is so much content... and then I see this video, that shows that the movement code is VERY easy, and, unlike those other tutorials, you actually explain what each thing actually does, allowing me to learn as if I'm watching a legit tutorial, which this video is exactly. This is VERY helpful!
It's very overwhelming when you're trying to learn everything at once, been there myself. If you split it into small parts you're gonna make good progress. Very glad to hear that it's been helpful, good luck!
@COMPUTER BUG Yeah, Jonas has some great tuts
@COMPUTER BUG bro its been out for like a year now ruclips.net/video/Gf8LOFNnils/видео.html
agree
@@PandemoniumGameDev physical logic should be done in Fixed Update. There are still a lot of errors in your code, but for beginners it's normal.
I've watched so many tutorials over the past few weeks and every single one didn't understand what a beginner was, they would go way to fast and didn't explain why they were doing something. this tutorial is a gift from god and i just want to thank you so much
That's the best compliment you could give, thank you. If you're having any issues DM me on discord
the trick is to just watch them all, even if it's repeated topics, it will start coming together after awhile. people just explain from different angles. this tutorial tho however, is top notch, it's from center view ground up.
The amount of you talking us through it is perfect. Amazing video to start this journey. Thank you so much for your hard work and see you at the end (:
I screamed "IT MOVES" when with this tutorial I finally learned how to type simple controls. You don't even have an idea how excited I am now. Thank youuuu
Congrats dude! Hope you saved it somewhere, I don't remember my first time when I made the player to move :(
@@PandemoniumGameDev Sure thing I did, still working on it though. I'm currently going through your second guide and think I'm doing well so far. All thanks to you
Just downloaded Unity. Was looking for a short and brief tutorial on how it works, but only found hour long ones. Thanks mate for the tutorial, really helped me out.
The tutorials are frankly awful. Never mind baptism of fire, it's baptism in a blast furnace - you should not be going straight from installing Unity into a prebuilt FPS with no explanation of anything else, but that's what they want you to do.
I say this as someone who has been dabbling in game coding for a good while now and has also enjoyed using Unreal. Unity just doesn't do it for me and leaves me feeling very impatient and stressed.
I wish I could like this video a million times! Do you know how long I have been searching for a tutorial that explains things thoroughly and moves at a pace that a beginner like me can follow? This tutorial is actually perfect!
You have earned a subscriber, my friend!
Late reply but thanks a lot, very happy to hear that!
I am building a video game so my brother can believe in his game design dream. I am also sending him this video when I finish making it, so he can make it himself. Thank you so much for being the beginning of his journey. ❤
Aw, that's heartwarming! Good luck to both of you and let me know if I can help ❤
im new to Unity that was a very good Tutorial
btw the one mistake with the Vektor3 was pretty neat because now i definitely know what the number is standing for, and probably wont forget it compared to other things i learned
Thank you for giving such a detailed walkthrough, too many tutorial videos out there just rush through steps, without explained what they're doing, and why they're doing it. Your style of demonstration makes it much easier to follow along and learn from 👍
Thank you for making this. I know it was 3 years ago and you have already finished but you talked the perfect amount.
Bro, believe me, I was trying to learn unity for months but didn't found any resources which explain stuff with this much simplicity. Keep it Up!
I'm very much a beginner, and I've watched so many tutorials recently that just explain how to do something but never why I'm doing it. This was perfect though, pacing was great and I finally understand what's going on! Thank you!
same i could never find a video where they actually tell you how to code works lmfao
You guys having issues with auto fill go to Unity and then Edit > Preference > External Tools > External Script Editor and pick Visual Studios in the drop down menu, be sure to close Visual Studios and reopen after you do it. This will hopefully make it easier for you guys, rather than having to watch a video about it! Good luck.
top tier comment
Thank you much!
Hi, I rarely like, comment or subscribe on any videos. But I just wanted to let you know that you have made an amazing set of tutorials that are extremely easy to follow. Everytime you stop to explain something it's just within a reasonable time to not lose focus. Thanks alot!
This is top tier. The amount of 4 hour tutorials that dont explain anything is crazy, and so often ive ended up confused and stranded whenever something doesnt work (probably because of a mistake i made) but this actually helps me gain a proper understanding of unity. I know gcse level python so you explaining how c++ in operates in some ways helped me make the connections and just actually know whats going on rather than blindly following a shit video.
Finally. A tutorial that didn't fry my brain. Thank you, I walk out a wiser man.
Hey man what are u using vscode or visual studio?
oh lord thank you so much for black square sprite i have been looking for it forever
😆
@@PandemoniumGameDev actually, this tutorial is very good and it helps me so much, thanks :D
@@will41n Glad to hear it, good luck!
I would like to thank you for such a good tutorial that not only goes over the basics but also explains them in a way that anyone can understand. Other tutorials online just blab and introduce new words and functions left and right without teaching how the stuff works in the first place.
Glad to hear you found it useful! Good luck on your game dev journey 🤞
I LOVE that you explain everything properly, please please please talk more it's what actually makes me understand this stuff!
Thank you so much for this tutorial! :)
Wow! I think I'm in the right place after a long search. Why this video is so underrated!!! You have a very straight forward and clean way of explaining stuff. I hope I'm gonna learn to develop 2D Platformer with you. Thanks a lot for making this series ❤❤❤
Thank you! Hope it's gonna grow with time, my entire channel's growth is mostly because of this series.
it's been 3 years but i'll still comment lol. I am trying to get into game development and this tutorial finally made me feel like i understood something instead of copying it all. thanks
Beautifully organized tutorial! You're an amazing teacher, sir!
Really appreciate it!
Awesome! I like the more detailed explanation personally. Most tutorials just tell you to write this and that’s how it’s done without fully explaining why it works. You’ve earned yourself a new sub!
Oh man, this is great. I went to add more speed and accidentally increased the Edge Radius by 10 so the Player just flew into the air. Fun times. I thank you for making these tutorials and being super thorough on what commands do what. I plan to watch and use them all.
I'm really excited after watching this. Seeing things explained step by step like this makes me believe I can do this.
I want to make a game for my nephew. He only cares about one thing -- playing video games. I am quite similar lol I want to make a game with his input along the way that we will both enjoy playing.
Best of luck and have fun making and playing it :D
Even 3 years after the video released, it is still so helpful. This helped me way more than other videos as a beginner, thank you!
lol
This is the best tutorial ive seen, i love how you actually explain what the things do. great job man.
This was the most helpful unity tutorial I have ever watched and im so glad I found it
I'm glad you found it too 😀
My man just saved my life XD My game design teacher sucks and really hasn't taught anything. He just links RUclips videos and they are so hard to follow as a beginner. I rarely comment but thanks bro for an actually great tutorial.
Glad I could help and hope you get a great grade :D
I've been trying to find in depth 2D unity tutorials for the past week, yours is the first one that actually explained to me what each piece of code does, thank you so much for this!!!
Really love the detailed explanation for each step. One of the most informative and educational videos I've ever seen
my player starts flying when Space is held down...
U need groundcheck;
I had watched someone elses tutorial before not knowing anything and ended up just copying line for line what they did, and in the process learning nothing. THANK YOU for actually explaining why and what the function of what you're doing is. Before this, I watched Brackeys "Coding in C#" series he posted before he took his break and now I understand what a float does, boolean, etc., ! In fact, I'm making a master doc of things I'm learning so that I can either reference in the future or be able to understand why or how something operates, not just that it does. For the first time, I can actually see what I'm doing and the reason behind it, as I said, I had no coding experience before this or Brackeys video series. I actually was able to add some off my own floats or finish what you were doing before you said it, which means at some level, I'm able to write my own code. Thanks SO MUCH
After writing the script with your video, I went back and watched again and put comments over all of the statements, describing what they do in my own words. It really helped the concepts sink in.
Amazing!
Thank you.
A well taught tutorial, very very comprehensive and easy to access for a beginner such as myself.
you are to underrated! Love it
Thanks! Doing my best to fix that 😀
Finally,I have tutorial that going to make me finished my coding class in college and sent it to teacher!
And,I love how you add a little bit humor in it make this fun to watch instead of throwing info dump in it without pause!
i'm gonna end up watching this whole playlist like 10 times, i'm sure. Back again to reiterate how comprehensive these videos are and how much i appreciate them =)
Man dude, youve got some talent for tutorials. I like how you explain what each line of code does. It makes it really easy to understand. Thanks + Nice job!
Thanks a lot, very glad it helped you.
thank you so much, took me 3 tries to do the code for some reason, but i got it, deffo talk more, its good to know how to code something but its better to understand what its actually doing. Fair enough if you dont have time or dont want to but longer video is better :)
i had a notion i might enjoy fucking around and maybe learning to code a bit - these videos broke everything down in such a great way that i completely lost all irrational fear of trying something new. These legitimately made me feel confident i could do this AND enjoy it; i appreciate it a lot, my man
thank you for the very important black square sprite◼
ONE IMPORTANT QUESTION : what keys do i press to move the player cause wasd and arrow keys dont move it
same here
for the player to jump u press the space keyboard and to move him left press left arrow button and the same for the right
i have the same issue its just not moving helpp
Make sure to capialise the words Horizontal and Vertical
@@Kurocathere what version do you have?
I have been looking for a good tutorial, this was super easy to follow and you make it so easy to understand
Thank you! Let me know if the next episodes are as clear as the first.
My guy this was uber helpful as an intro to C#, i have done a fair amount of python/php/javascript development for my work and just starting to get into making games as an interest.
Thank you!
OMG, I'm gonna watch ALL this serie and code a game by myself. You earned a new sub, this is incredible. I will tell you if anything is going wrong :D
I need some help. after writing the exact code that you did in left-right movement chapter, i get an error message that says: "Assets\Scripts\PlayerMovement.cs(7,13): error CS0246: The type or namespace name 'RigidBody2D' could not be found (are you missing a using directive or an assembly reference?)" do you know what this means? i could not figure it out. im using the unity version of visual studio 2019. please help me out, thank you.
I had this problem myself and its because the b in Rigidbody2D isn't supposed to be capitalized.
Hope this helps
@@furiouslyfast424 that wasen't the problem here is the code and see what i did wrong
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BallMove : MonoBehaviour
{
[SerializeField] private float speed;
private Rigidbody2D body;
private void Awake()
{
body = GetComponent();
}
private void Update()
{
body.velocity = new Vector2(input.GetAxis>("Horizontal") * speed,body velocity.y);
}
I have the same error, do u know what the problem was yet?
I have it too
@@akaithecreator7448 here is the fixed code let me know if it worked
Changes made:
Added a missing semicolon after the GetComponent() line.
Corrected the syntax error in Vector2 by removing the extra parentheses and provided correct parameters.
Changed input.GetAxis> to Input.GetAxis.
Declared a variable moveInput to store the result of Input.GetAxis("Horizontal") for readability and efficiency.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BallMove : MonoBehaviour {
[SerializeField] private float speed;
private Rigidbody2D body;
private void Awake() {
body = GetComponent(); // Error: Missing semicolon
}
private void Update() {
float moveInput = Input.GetAxis("Horizontal"); // Error: Incorrect method name and missing variable declaration
body.velocity = new Vector2(moveInput * speed, body.velocity.y); // Error: Syntax error in Vector2 and incorrect method name
}
}
I can't write code in VS when I wrote Rigidbody2D my code doesn't work
Same. What was the mistake?
Bro you saved me this is by far the best tutorial on movement you earned a sub
Best tutorial video I could find, you actually explain what the code is doing :)
When I try to drag the player movement script onto the player it says “can’t add script component ‘player movement’ because the script class cannot be found. Make sure there are no compile errors and that the file name and class name match.”
The file name in Unity and the script name in code have to be the same and have no spaces. There's a reason I called it PlayerMovement in both places.
@@PandemoniumGameDev Oh, I see the problem now, Thanks!
4:55 when you rename that SampleScene to level one, what button do you press on that message box? when i press reload the 2D sprite just disappears... (and pro tip: show your cursor on your video and it will be much easier to follow)
First select something, then press F2 to rename it. Yeah, sorry about the cursor, I added it in episode 2.
This is amazing. I know basically nothing about unity, and very little about coding, but you made it easier to understand while also doing a great job of explaining how everything works. I feel like a lot of tutorials just tell you "Here's the code, copy it", and then you don't really learn anything. Here I feel like I understand how everything worked and it was super easy to follow.
This tutorial is actually perfect all the others go on about downloading resources and making everything look nice, but this one actually tells us things we couldn't just find out our selves easily.
Thumbs up, I got the urge to pat my laptop on the back.
Pat yourself on the back for finding it and following along 😁 Thanks a lot!
I coded the c# script, however I still can't move horizontally
I know it’s been a long time but did you ever figure out what was wrong?
Use rigidbody.addforce to add force make rb public and drag your rb
Please anybody I need help ‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️‼️ when I tipe in Rigidbody2D it doesn't get colored and it doesn't work
Pleas
@@lulaluptv dont worry, this happened to me too. Try fixing it by following these steps. ruclips.net/video/g3sHbFmzq3I/видео.html&ab_channel=qubodupDev
Same thing happens to me even when I copy and paste the exact same code.
same, always the comments that need help or say "help" are always on the buttom of the comment section
Have u figured out what the problem was? I have the same problem
Finally a proper tutorial. This really helped, I’m glad you actually explained what you did instead of just doing stuff and expecting the viewers to know without explaining. I plan on making a 2D game where you play as a shovel digging through levels and using your abilities to get through puzzles
Sounds cool, make sure to share a link once it's done.
Awesome tutorial Nick, keep up the good work
thanks dude, you too :D
This tutorial is so great because even though I knew how to do some of this, I wasn't entirely sure why I was doing certain things or calling certain functions--thank you so much for the explanations!
Super detailed and fun to watch tutorial + I tried Unity a few years ago and it felt very hard and felt like I wasn't accomplishing anything, but now that I'm interested in learning Unity again I feel like I'm actually learning stuff which is really really good.
I tried and quit a couple times as well when starting off, glad to hear you're back on track! Happy learning and keep getting better 🙌
@@PandemoniumGameDev thank you
Perfectly explained, other then throwing bunch of lines you explain what is the purpose of each line,thats fantastic.
Keep it up bro,peace
Mate, I have been watching so many videos the past few days trying to wrap my head around the most basic of features, I wanted to make a few games to see how I got on with it but most of the videos I have watched so far have been overwhelming and felt rushed or made with the expectation people had some knowledge.
Your video has been thorough and very well paced, I am just getting started but I am looking forward to working through and following the rest of these! Thank you very much!
Hey George, very nice to hear that! Thanks for the encouragement and keep going!
I am a complete beginner in coding and Unity and this tutorial is perfect for me. I really enjoy the explanations of what components do and how the code actually works. In a few hours I have gone from installing Unity to having a platformer with a character that can run, wall jump and shoot. Also, because of how well structured the tutorials are, when I have missed steps or things are not quite how I'd like them, regarding projectile speed etc, I know where and how to adjust it. Thanks for a great series. I have never subscribed so quickly to a channel. Great work!
Really great to hear that, thanks a lot! Good luck with the process!
One of the better 2D platformer tutorials I've seen on RUclips. It's been a great help so thank you!
Great Video. Really simple and easy to follow along even for a bignner like me. Excited to check out the whole series.
Returning here 2 years after I first saw the video, I realised just now how much I have learnt. I am so grateful for your channel, everytNice tutorialng
That's awesome to hear! Glad to have a contribution and good luck 🙌
This is a very useful and weel done tutorial, the fact that you explain what every single line of code does makes it even more interesting, as in other tutorials they just tell you to copy and paste everything. Thank you
I did new started making games with unity.Since my language is Turkish, i seached the contents in Turkish at first.But your style of narration is the best of all , i can understand very well with the help of the subtitle... Good job bro 👌
This tutorial is amazing I have been struggling to actually learn unity and not just click the same button as the video. But you actually explain the reason why you are doing something. Thanks
I've just started learning Unity by your video. I was really worried about if I wasn't going to understand what you are doing but you explained literally every single detail and thats just the thing I want. You earned a subscriber :) Keep up the good work!
I am very excited for the second lesson :))
The pacing is WONDERFUL. THANK YOU for not spending 2 minutes for every action swinging your mouse cursor around talking about theoretical garbage that might be applicable three years from now.
This is the best Ive seen covering this content. Made it simple and concise - the way it should be
Thank you very much for this series! I really want to develop a side-scroller, but couldn't find anything too relevant on the internet.
This tutorial series is perfect and I will start applying it straight away! :)
This helped a LOT! thank you so much!
Already awesome Video. Getting right into it and explaining the process on the way.
This is the best and easiest to follow 2D Platformer Unity tutorial I could find RUclips. Thank you!
I haven’t finished the video yet, but is so cool man 👍 you are not just writing code you are explaining the “why” of every step and that is what really helps for learning
I love this approach. Easy to understand. I like the tone of your narration, very matter of fact. Thank you.
Love to hear that, thanks!
Hey man , just started out unity and thanks for explaining what you are doing clearly , us newbies really appreciate it
Your Tutorial was Amazing
it was the first tutorial ive watched and taught me enough so i can add on to the script without guidelines i made my own variable for the jump height i know its simple but its a huge confidence boost definitely subscribing
Thanks a lot! Good luck on your game dev journey :)
@@PandemoniumGameDev Thank you
I'm following up in July 2024, and it still works!!
@@AdrianArgentina-nd7rg the code is still the same 😁 Good luck 🤞
I keep going from tutorial to tutorial saying it's the best tutorial, but this one actually is the BEST tutorial, because it starts from absolute scratch. of a basic box and ground up.
This is really well explained. You go into details, also visually show everything. It's awesome. Thanks for this:)
This channel deserves a lot more subscribers extremely underrated
I cant believe I am actually learning code and kinda understanding it!!! I love your explanations as they help a lot, and it even allowed me to make my own variable for jump height! Can't wait to watch the other videos for this series :D
Love to hear that! Good luck and happy learning!
This video still works in 2023, May!
Thank you for the easy to understand video!
OMG! This was the best tutorial on Unity that I have ever seen! Keep on making videos because they are awesome!
Thanks a million! Means a lot to me to hear this, and yeah definitely I'm making episode 8 right now
Dude, thank you so much, you are the first ytber to actually EXPLAIN how to codes work and not just "Ok then write Bla bla bla console.write.Hello " Thank you so much, you got a new subscriber
You are my hero. Thank you for this series of tutorials
Highly appreciated!
After an around 2 year break (procrastination, computer broke, school etc) I feel like i can get back into this
Good luck, feel free to reach out for help if needed!
Finally a clear and perfect tutorial.
I have liked very few videos on youtube, but it was one of them. ❤️❤️❤️
Extremely well made video, This is one of those videos which are really helpful for beginners like me. Thank you!!
I think it was fun to follow along
I'm super new to all aspects of game development and your tutorial was extremely helpful. Thank you !!
Thanks, great video. I only watched the coding part but I love how well you explain how every piece of code works!
Please talk lol it really helps man honestly ur 1 of the few that I find very straight forward and take the time to explain every little detail which I learned is very important one minor mistake can cause hours of headaches.
Well explained and very helpful to people that are new to unity. You make it very easy for people to understand and learn. Keep up the good work man!
Thank you I was looking all over, I was trying addforce but this is the first one that worked.
glad to help, episode 2 on the way :)