Anyone notice how as the series goes on there is less and less views because people give up but great videos I love them
@jonatan01i5 жыл бұрын
It's like with any other series.
@ketsuenightcore5 жыл бұрын
I don't even know why I'm following this series
@whimsical22235 жыл бұрын
if you a have a bit of programming experince this is actually that hard
@RoboEpic5 жыл бұрын
that's what i noticed
@otfast22285 жыл бұрын
that'ts a big mistake don't give up! You need to have fun programming.
@tylerwalking3924 жыл бұрын
Hey, anyone who sees this and you're thinking about giving up, DON'T. You are halfway through and it gets easier and more fun from here. I promise all of the hard work pays off.
@ZaymsMarbleRaces3 жыл бұрын
I saw this at the perfect time ;)
@simeonstoilov95763 жыл бұрын
omg this takes a lot of time
@mr.mystical97763 жыл бұрын
Yeah, your right, and when you finish here til now (like i am) i kinda figured how to write some code for myself!
@latrys8863 жыл бұрын
@@mr.mystical9776 Omg thank you so much. I want to end but you gave me the power to do it and i did it
@mr.mystical97763 жыл бұрын
@@latrys886 Your welcome!
@kailange-dei77854 жыл бұрын
for anyone having this problem if the error shows up and says null reference exception that mean that you have to drag player movement into the collision scrip that's what worked for me. the part I missed was at 7:03
@TheNewYouTubeHandlesAreDumb4 жыл бұрын
Ahaaaa thank you
@shakedcohen50364 жыл бұрын
thx!!
@thesunshineart98764 жыл бұрын
kai Lange-dei thanks brooooo I can’t thank you enough
@BreeingIan4 жыл бұрын
Thanks so much I almost gave up until I saw this. So frustrating but incredibly rewarding once you finally figure out what's wrong
@anexotikbakka23423 жыл бұрын
@@BreeingIan hey pls help can u elaborate more im rly smol brain so cudnt understadn hv same error tho
@davidslivnyak48664 жыл бұрын
Hope this series booms during quarantine!
@chickeninabox4 жыл бұрын
It did.
@aw1lt4 жыл бұрын
mhm, it definateley did
@ImmortalRemy4 жыл бұрын
I was like hmm I should really start lerning how to use unity.. TIME FOR LATE NIGHT CODING BOI'S!
@oakleyblade94004 жыл бұрын
yah... i've gotten here in .5 days cuz of all the time on my hands!
@IsaacMcC4 жыл бұрын
did u get this to work, I haven't been able to and I'm totally stuck
@Eric_Shaun4 жыл бұрын
After thinking and being "scared" of starting learning coding and trying to create a game, I started yesterday and downloaded unity - and so far i am having a blast and thats thanks to you, brackeys wonderful tutorials so far, great explenations, and perfect "from scratch" tutorial/lessons. I have done a Tutorial, ,besides the "microgame" from unity, but that was way to "specialized" and adding to an existing project, which still did not cover the real basics of unity. much love!
@ok51833 жыл бұрын
what did you do
@uliveulearnandregret2 жыл бұрын
@@ok5183 true what did he do? 🤷♂we will never know
@DavidPalayathar Жыл бұрын
For those who are wondering on how to get the collision system to work, I found out how to fix it, The code: using UnityEngine; public class PlayerController : MonoBehaviour { public PlayerMovement movement; void OnCollisionEnter(UnityEngine.Collision collisionInfo) { // Check if the player collides with another object if (collisionInfo.gameObject.CompareTag("Obstacle")) { movement.enabled = false; } } } Make sure you remember to link the PlayerMovement script to this script through unity, in the inspector. I hope you've found this helpful🙂
@CCStopmotionStudio Жыл бұрын
Thank you so much! Was stuck on this for so long!
@Aashvin.r.o.y Жыл бұрын
u my god
@KenN0tGood10 ай бұрын
Me who's misspelled my tag: *Changed everything then realized something-*
@vishalsaraswat53589 ай бұрын
Thanks a lot bro....i was stuck too
@shyrshyr22878 ай бұрын
+rep from Russian community
@twwister983 жыл бұрын
Just want to say a shout out for Brackeys being so happy every video! It's cool to see someone so happy about passing on their skills to others! #Hero
@MKx2_052 жыл бұрын
anyone realise that all the ads he does are to help the comunity not for personal gain this is how to distinguish good content creators from the bad ones. true legend.
@skypirate973 жыл бұрын
When you spell Obstacle "Obstacal" accidentally in the code and it takes you half an hour to figure out that fault: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
@THEspindoctor843 жыл бұрын
hey, I bet that moment when you finally realized your mistake felt GREAT!
@emoshimo93323 жыл бұрын
@@THEspindoctor84 i started this tutorial series 2 days ago and dont have any other coding exp is it normal that i dont understand the codes but just copying them seeing results for now
@THEspindoctor843 жыл бұрын
@@emoshimo9332 I'm not an expert, but I would definitely say that that is normal. But starting here seems a little bit advanced for someone with literally no coding experience. Its generally not good to just copy code and see the result, without understanding the concepts. I would start with a nice long FreeCodeCamp video, like this one on C#. kzbin.info/www/bejne/fZm0lZ9_e96fh5o Once you watch that, you will understand some of the basic syntax, and this might make more sense. I also recommend books, since I believe they tend to explain concepts better than videos. I am currently using "Learning C# by Developing Games With Unity 2020" by Harrison Ferrone. Its very good for someone with little or no coding experience.
@emoshimo93323 жыл бұрын
@@THEspindoctor84 thanks sir that will help a lot i really appreciate your time and effort i can say you made my day :)
@IbraHere3 жыл бұрын
Lmao
@CurbStompCity7 жыл бұрын
I just want to quickly comment whilst in the middle of this playlist. Attempting coding has always been a daunting task, but your videos explain everything really well and it is slowly becoming a lot more clearer to me. Thanks. :)
@eqanmustafa39252 ай бұрын
@vladymartinez12325 жыл бұрын
I just discovered a world i love and i didnt know, i guess i will have to change my major😂, btw im doing everything exactly as he is doing it but i have so many different ideas for it but i dont know how to execute them, i guess i have to stick to what he is doing till i actually learn
@on3x9035 жыл бұрын
Thats what i am doing. I think we need to just copy him, and after learning it, we can advance our self, because then we have a lot more experience we can use to put something together, tyhen it gets easier to watch harder turtoials
@suhailseedat5235 жыл бұрын
Keep on moving bro and you'll succeed
@TecBratGames5 жыл бұрын
Duplicate a scene to give yourself a playground of sorts and hack away at it. Google whatever you don't know. Then, come back to Brackeys for more of these amazing vids!
@desirocker90994 жыл бұрын
check out Unity c# documentation
@taem35424 жыл бұрын
I am also doing this I have an idea to make a sorta 3d version on the no internet dinosaur game it's likely been done already but I just want to do it myself to share with friends
@alessio57132 жыл бұрын
i love how the videos are short and straight to the point like small baby steps
@dratylapio4 жыл бұрын
this mans intros are the happiest things ive seen in my entire life
@motivationnow4753 жыл бұрын
lmao ikr
@ralf67565 жыл бұрын
he explains things fast into the point directly and keeps everything simple , can't imagine something better
@Pozivnoy_Haski3 жыл бұрын
I'm from Ukrain and don't speak English but watching these videos I'm was amazed because I understood him very good, and I'm so grateful for your work (11 videos "How to make a Video Game"). Thank you man!!
@321413 жыл бұрын
Hi Am Russia Man XD
@prime_fn2283 жыл бұрын
сало сало сало Українске сало
@thomasviglione23623 жыл бұрын
@digviaysingh4803 жыл бұрын
Then how did you wrote this comment..?
@Pozivnoy_Haski3 жыл бұрын
@@digviaysingh480 I wrote this comment whith "Google translate" and I'm know English, but some bad for free understand these videos.
@interflashz7 жыл бұрын
Please make longer episodes when you come back from your vacation, I hope you have fun!
@AnasMations7 жыл бұрын
Inter Flash yeah it's too short
@RitobanRoyChowdhury7 жыл бұрын
Longer and Advanced tutorials, Please!!
@RitobanRoyChowdhury7 жыл бұрын
I never said to get rid of these short ones, I just said I'd like to see longer and more advanced ones. Maybe some kind of procedural (dungeon, world, quest, etc) generation?
@RBTGamming7 жыл бұрын
it's for people who are scared by longer videos, like me. I like this piece meal method. I believe have other videos that are longer (not sure though).
@AnasMations7 жыл бұрын
Royal Tyger's Media but he makes one video of this series once per week so the solution is to make more videos or make the video longer (sorry for my bad English)
@brucelee77823 жыл бұрын
I like how he explains things step by step. I mean REALLY step by step. For exmaple I didn't what the tag was for in other tutorials, they just glanced over it but this guy really explains things. Now I have a better solid understanding of unity.
@nichobeastmode83616 жыл бұрын
Everyone who is having problems do this!!! Chang it from, void OnCollisionEnter (Collision collisionInfo) TO void OnCollisionEnter (UnityEngine.Collision collisionInfo) in your script
@vijaysaichowdekar55156 жыл бұрын
thank you sooooo muchhhh NichobeastMode i was stuck doing this for like 2 days and i was literally gonna stop this thing then i tried ur thing and it worked out thank you once again dude
@PigeonFoodmemes6 жыл бұрын
thank you
@Seafoodmon85 жыл бұрын
I was following one of his later videos and accidentally deleted my scripts so I had to rewrite them with all my objects and shit still there. Now whenever I try to write the collision script it won’t work any more even when I tried to change it to the way you said when it worked before. Im infuriated
@razvaniuga91645 жыл бұрын
Thank you so muchhhhhhhhhhhhhhhhhhhhhhhh
@zontiakofficial5 жыл бұрын
Thank you!
@_zerohour_2 жыл бұрын
This is my third time coming back to Unity, and honestly, I'm astonished at how simple this stuff is in hindsight. I have experience in the kids coding site called Scratch, and frankly it's making this so much easier to digest. I mean, I really get this stuff, and I'm feeling so confident in it so far!! I think the best part for me to, is I have an understanding I don't know that much, and due to this, I got a good grasp on how big my scope is... But! I'm confident I can do something that'll be just fine! I'm just so happy for this tutorial, thank you, Brackeys!!!
@masterjokerx549 Жыл бұрын
Did everything come out well for you??? Because it didn’t for me it had so many problems in this part and now i just messed up all the old parts 😢
@_zerohour_ Жыл бұрын
@@masterjokerx549 What's the problems you had? I can do my best to help!
@masterjokerx549 Жыл бұрын
@@_zerohour_ omg you answered even tho your comment is 6 months old
@masterjokerx549 Жыл бұрын
@@_zerohour_ i kind of figured out the problem and it was that i don’t have a dotnet which i don’t know what that is since I’m new and after downloading multiple dotnets in unity itself as extensions and outside of unity i still have the same problem so it didn’t fix anything
@masterjokerx549 Жыл бұрын
@@_zerohour_ i had the player movement script functioning normally until i added the player collision script and the it started popping up and saying that my player movement script isn’t valid
@eeshionglim63604 жыл бұрын
Hi Guys, For those player who are unable to stop after the collision, you may refer to 5:43. Check the tag for all of the "obstacle" whether is it the same on your scripts. Hope this might help you guys! Have a nice day :)
@retrofreak32553 жыл бұрын
I still don't get my object to stop please help :(
@ersinfalan2 жыл бұрын
you saved my day..
@azetalkaazetalka58492 жыл бұрын
♥♥♥
@Pogo_TW Жыл бұрын
Don't know why the tag created previously disappeared. Thanks so much anyway!
@Holladawg4 жыл бұрын
* yellow cube hits black cube * "Houston, we have a problem"
@dio16474 жыл бұрын
You sir, are colorblind
@Holladawg4 жыл бұрын
@@dio1647 i just colored mine different
@hioman4 жыл бұрын
Wow, that's exactly how I colored mine
@kinoko87_b4 жыл бұрын
I dont understand
@sabana75643 жыл бұрын
Okay thats so wierd I put the exact same text as mine as well!
@jovanmaric98373 жыл бұрын
"displaying a message in console isnt that exciting " *me cheering cuz it took me 2 days to do t properly*
@Prxojectmythic3 жыл бұрын
The same mine was working perfectly about 5 Kim’s ago but my unify is like broken cuz stuff never works for me and about 2 mins ago I was able to move and turn my cube and stuff like a game bug then I added the script for collision and it just stopped moving when I clicked play 😭I hate unity
@patrikzub84996 ай бұрын
Hi man, im currently watching your videos and.. eventho it's been 7 years from posting I really hope this message will reach you. First of all thank you. Thank you so much for helping me making my dream true. I will make sure to show you my gratitude by supporting you on patreon as soon as I can afford it. Second, your videos are so precise, so perfectly described that even a noob like me understand everything perfectly. Thank you so so much!
@jdgoldvox4 жыл бұрын
To anybody who thinks that their player is "stuck" as soon as it hits the ground. I just fixed my code by making sure the semicolon ( ; ) is in the correct place. I axidentally put it after : if (collisionInfo.collider.tag == "Obstacle") ;
@memehut63424 жыл бұрын
Thankyou so much
@mattiashenning77174 жыл бұрын
Helped a lot. Thanks mate
@Rangal254 жыл бұрын
When I do that, it gives me a compile error, it won't work unless I have a semicolon there, so I don't know what to do
@SalopianYoutube4 жыл бұрын
Saved me time, thanks
@shreyashdurgapal47154 жыл бұрын
Assets\Playercollisions.cs(5,8): error CS0246: The type or namespace name 'PlayerMovement' could not be found (are you missing a using directive or an assembly reference? how do i fix this please tell
@classifiedinformation86866 жыл бұрын
OMFG - idk if i should be so hyped but here are some comments saying it doesnt work blablabla... im an absolute beginner, and somehow - idk how in 15 minutes i made it work Also im happy to help, just copy and paste this! using UnityEngine; public class PlayerCollision : MonoBehaviour { public PlayerMovement movement; void OnCollisionEnter(Collision collisionInfo) { if (collisionInfo.collider.tag == "Obstacle") { movement.enabled = false; } } }
@akemidryzz93875 жыл бұрын
Oh dude thank you
@nathanaelnoon5 жыл бұрын
In my game there are these messages: The referenced script (Collision) on this Behaviour is missing! The referenced script on this Behaviour (Game Object 'Player') is missing! Can someone help me?
@akemidryzz93875 жыл бұрын
@@nathanaelnoon Did you copy past the script of the guy right above?
@akemidryzz93875 жыл бұрын
@@nathanaelnoon Oh and in your console, double click the error message, it can lead you where the error is
@akemidryzz93875 жыл бұрын
@@nathanaelnoon and did you create the scripts and "put" them on the right thing? like for this one it s on the player
@simplerobloxstudio3 жыл бұрын
funny how Brackeys have literal free tutorials on unity and other things have like 300 per year, keep up the great work Brackeys!
@Em-Fa2 жыл бұрын
I copied the code he wrote and i still dont get the collision info in console. Can someone please help?
@xDerpygamer4 жыл бұрын
Another tip for the people who are new to coding; make sure the void isn't a private void cause it'll for some reason suggest the "improvement" just do void OnCollisionEnter(UnityEngine.Collision collisionInfo) like everyone in the comments is saying
@asutoshmishra9024 Жыл бұрын
thanks
@jodeer32323 жыл бұрын
1. I really love the series thank you so much 2. Not important but if you are watching through them now its so unsatasfine if the backround and your position is the same but your T-Shirt changes
@kaperfairt20764 жыл бұрын
Thanks. This is the tutorial series i've been looking for a long time. You explain everything clearly and smoothly. You've earned a subscriber.
@aprilea812 жыл бұрын
Got unity 2 days ago and Brackeys is making it easy to learn c # and game design. thx Brackeys
@Sofistar.4 жыл бұрын
Im a 10 yro Kid, and i imagened to create a game, i thought it was hard but with this, it is so much better! Thankyou!!!
@chickeninabox4 жыл бұрын
Don't show your age online, No one cares about you.
@bsuryasaradhi68164 жыл бұрын
Good😊
@glassprism16724 жыл бұрын
10 yro dont use comas in good places like "U"
@loveisthemostpowerfulforce13974 жыл бұрын
What kind of game will you create?
@aamirsyed46584 жыл бұрын
@@chickeninabox you dont have too be mean -_-
@Xylz3 жыл бұрын
For anyone having it detect the ground as an obstacle, Make sure you dont have a semicolon here: public class PlayerCollision : MonoBehaviour { public PlayerMovement movement; void OnCollisionEnter (Collision collisionInfo) { if(collisionInfo.collider.tag == "Obstacle")
@LuxterVr2 жыл бұрын
thanks for the code for some reason my code wasn't working but I copied yours and it works now thanks man
@Xylz2 жыл бұрын
@@LuxterVr no problem!
@mpsclllion2 жыл бұрын
It won’t let me drag playermovement into movement
@rfb-playz3382 Жыл бұрын
Thanks man.I have been stuck and searching for the solution for days and now it finally works.thanks alot
@OK-gz4wr Жыл бұрын
You saved me. Thanks bro
@ppandolff90384 жыл бұрын
Im very late and you probably won’t see this but damn, this series is so great and helpful!
@connorwill99164 жыл бұрын
For anyone confused on why you wont stop moving and get an error message as well possibly use this code (replase scr with your PlayerMovement script name, and also place playermovement script in collision script) using UnityEngine; public class PlayerCollision : MonoBehaviour { public scr movement; // A reference to our PlayerMovement script // This function runs when we hit another object. // We get information about the collision and call it "collisionInfo". void OnCollisionEnter(UnityEngine.Collision collisionInfo) { // We check if the object we collided with has a tag called "Obstacle". if (collisionInfo.gameObject.CompareTag("Obstacle")) { movement.enabled = false; // Disable the players movement. } } }
@AbusingEgo2 жыл бұрын
OMG THANKS SO MUCH
@Ownxer2 жыл бұрын
thank you! it didnt work for me and this saved me
@KingNBearFutbolenVivo6 жыл бұрын
For those are having troubles about the collisions code, just change this. void OnCollisionEnter (UnityEngine.Collision CollisionInfo) instead of void OnCollisionEnter (Collision CollisionInfo) AND if (CollisionInfo.gameObject.name == "Obstacle") instead of if (CollisionInfo.collider.name == "Obstacle") NOTE: Dont use Collision.gameObject.tag, because our objects are untagged.
@ivsatyouu52855 жыл бұрын
If you have trouble with this, its because he changed the Collision name to a capital C. make sure all of the variable names are EXACTLY the same (yes its case sensitive)
@sjanderson29495 жыл бұрын
THANK YOU!!!!!!!
@Mad_Elephant.2 жыл бұрын
tysm
@migcraft50723 жыл бұрын
still helping and relevant 4 years later thank you!
@blsbros82692 жыл бұрын
i will comment every year on this video and share my game dev experince 2022--- i am new in unity trying to learn 2d games
@yusufofski24 күн бұрын
how is it going so far
@resharper97504 жыл бұрын
For anybody stuck at 7:00 who's PlayerMovement isn't working, just remove all caps and type in playermovement (all small) instead. It'll work just fine.. Thank me Later MY CODE though: using System.Collections; using System.Collections.Generic; using UnityEngine; public class playercollission : MonoBehaviour { public playermovement movement; void OnCollisionEnter (UnityEngine.Collision collisionInfo) { if(collisionInfo.collider.tag == "Obstacles"){ } } }
@daki41544 жыл бұрын
Thank you bro 👍🏿
@gdlyuyjmwjyld61522 жыл бұрын
Ty
@SlothCGaming2 жыл бұрын
thanks you
@raunakkumarthakur62962 жыл бұрын
@@SlothCGaming I am still getting error with that also
@lookinghog8423 Жыл бұрын
Doesnt work for me
@ashsureshkumar91504 жыл бұрын
Dude you saved my life. I wanted to make games and stumbled upon this video I started and downloaded everything. But when it came to the first video i couldn't make the camera face the ground so i gave up and deleted unity. but 3 days later i downloaded it again an came back to your channel. And i finally figured it out. I just had to rotate it bro. And i'm still going on this and Thank you bro you're the best. ;)
@willpunchit2723 жыл бұрын
Brackeys: We're going to delete both the start AND the update method. *Wait, we're deleting all of it?* *Always were going to.*
@marcellmeszaros93814 жыл бұрын
If anyone is having issues with the movement.enabled = false line, replace it with GetComponent().enabled = false;.
@danleavitt95894 жыл бұрын
Thankyou so much
@loganmcghee25294 жыл бұрын
still not working, thanks for the help tho
@Nakasasama4 жыл бұрын
@@loganmcghee2529 Go into your slippery physics and change the values dynamic friction and static friction to 0.25. I had a problem where it clicked off but the movement didn't stop. It's possibly a physics problem that noobs like myself don't see. :-/ Took me an hour looking around to figure this one out. Anyhow, hope this helps. p.s. you do this in the Inspector window.
@mahindersingh39954 жыл бұрын
@@Nakasasama thx bro I am stuck on these error from last 4 days I am getting frustrated thx bro again
@vanillamusket56483 жыл бұрын
I've been trying to figure out how to fix this for days, thank you so much
@Marco-rv7ec3 жыл бұрын
I started game development with this project, one year ago exactly. Meanwhile I made a 2D platformer game for my school project, and game development is what I love to do. Brackeys taught me the basics, and I can´t say thanks enough. Today I will finish this little cube game, because I want to work with 3D as well. Never give up people.
@TimM-kz1vl5 жыл бұрын
These are my notes on this vid so you don't have to rewatch it: Video 5: Collision Making things happen upon collision. Create new script, delete start and update method Void OnCollisionEnter () //Anything within these curly brackets will be called when an object collides with something. Needs a rigidbody and collider. { Debug.Log(“We hit something!”); //Make an obstacle and call it Obstacle } Console will display text when you collide with it. You will get that message whenever you collide with the ground though, so switch to a boolean statement. Void OnCollisionEnter (Collision collisionInfo) //Getting information on what you collide with. { Debug.Log(collisionInfo.collider.name); //displays name of object } Now we can change it to say something only if we hit a specific object. If (collisionInfo.collider.name == “Obstacle”) { Debug.Log(“We hit an obstacle!”); } You can group objects together using tags. Tags are at the top of the inspector and name it Obstacle. If (collisionInfo.collider.tag == “Obstacle”) To turn off player movement upon collision, we need to add a new variable above void OnCollisionEnter that cancels the script PlayerMovement Public PlayerMovement movement; There will now be an empty slot in the inspector. Drag the Playermovement script to it. Edit the collision script if/then statement to If (collisionInfo.collider.tag == “Obstacle”) movement.enabled = false; // disables movement script
@BOT2560Z8 ай бұрын
for anyone one following the tutorial now, Unity dose not like if you use: if (collisonInfo.collider.tag == "Obstacle" ) {}, Instead use: if (collisionInfo.gameObject.tag == "Obstacle") {}
@ACRbricks8 ай бұрын
i used it but the reference still wont pop up under the script in the inspector any idea why?
@rae-lloyd3 жыл бұрын
brackeys: We hit an obstacle! me: AAAAA MY LEG
@ashtongreenwood6464 жыл бұрын
That feeling of accomplishment after you fix an error is like no other
@trevorstechcorner83613 жыл бұрын
you are right my friend. Just spent nearly an hour trying to figure out why I wasn't getting any console debub messages. I had accidentally deleted everything and the script was weird.
@davidpopoola46362 жыл бұрын
@@trevorstechcorner8361 me too how did u do it
@fredthompson98252 жыл бұрын
I dont get the drop down menu that appears in the video for example after ' CollisionInfo. ' any idea how to make this show?
@chrisgaming95672 жыл бұрын
This went perfectly well
@tal17534 жыл бұрын
Hello, I receive this error: Assets/PlayerCollision.cs(5,9): error CS0246: The type or namespace name 'PlayerMovement' could not be found (are you missing a using directive or an assembly reference?) . Can someone help me? Edit: The reason you have this problem is that you must have misspelled PlayerMovement in one of the scripts.
@tarabothra93094 жыл бұрын
This is happening with me also😫😫😫
@mashiromoritaka62994 жыл бұрын
thank you for editind your comment
@kapilbadokar4 жыл бұрын
It says cannot convert string to bool errror what to do??
@rodrigopereiramelo4 жыл бұрын
write without capital, worked for me
@ryanwachira4 жыл бұрын
@@rodrigopereiramelo thank you
@burakoruc58153 жыл бұрын
If anyone have a problem with when box collides and nothings write on the console try this code. public class PlayerCollision : MonoBehaviour { public PlayerMovement movement; void OnCollisionEnter(Collision collision) { //Output the Collider's GameObject's name Debug.Log(collision.collider.name); } } With this command line i worked it. I am leaving unity resource web page as well : docs.unity3d.com/ScriptReference/Collision-collider.html
@hampterakaepicgamer15993 жыл бұрын
thx
@jaywitzlol59183 жыл бұрын
Thx
@Immdumb2 ай бұрын
I have it as saying "We started the fire" and hummed We didn't start the fire, at the start of the video
@tinymooshmallow6181 Жыл бұрын
Assets\PlayerCollision.cs(6,12): error CS0246: The type or namespace name 'PlayerMovement' could not be found (are you missing a using directive or an assembly reference?)
@Smoah3 жыл бұрын
me: why is my collision not working brackeys: you need to add a rigidbody for this to work me:FUUUUUUUUUUUUUUUUUUUUU
@ilovecairns51813 жыл бұрын
what?
@mrstik101 Жыл бұрын
just for fact, tags are not an acurate way for managing collision nowadays due to some reasons... but for sake of simplicity, it works. also, great tutorial!
@GodIsGood8455 жыл бұрын
if statement does not work for me. it turns of movement anyways. when it hits the ground it turns off. eventought it is colliosionInfo.collider.tag
@mattbullen33305 жыл бұрын
Same
@mattbullen33305 жыл бұрын
Have you figured out how to fix it
@skorpius20295 жыл бұрын
@@mattbullen3330 you probably didn't do tag correctly as it turns it off as soon as player hits the ground
@stevencvisuals4 жыл бұрын
@@skorpius2029 I tagged it correctly but it still won't work.
@masamotox9524 жыл бұрын
You spelt collision wrong
@jihedbouchnak Жыл бұрын
the best getting started tutorial ever in unity hope you came back one day or once a while
@AngelTFC4 жыл бұрын
"We can use the dot to assess in to different infos, stuff like the Impact Foursome.." - Brackeys ;)
@varunbajoria61263 жыл бұрын
im having a problem with this as the dot doesnt show any info in visual studio code
@ilovecairns51813 жыл бұрын
They didn’t say that ok, this is a joke
@varunbajoria61263 жыл бұрын
@@lewel3788 it was 3months ago and no i had exams
@sombreroguy18532 жыл бұрын
My script wasn't working and I got really frustrated, then I realized that I forgot to end it with a semicolon lmao
@Shadow-vw8zk4 жыл бұрын
I have writed all the code but it says "We hit an Obstacle" when i fall on the ground and when i hit the obstacle
@SaucySeth7774 жыл бұрын
May be late but do you have a ; on your if line?
@60bpmmusic_4 жыл бұрын
Well, just found out you have to take out the ; on the if line
@SaucySeth7774 жыл бұрын
AZOM Sorry, didn’t specify whether you wanted it there or to remove it. Yeah you just needed to remove it.
@callummyers24804 жыл бұрын
@@SaucySeth777 been stuck on this for like 20 minutes thanks so much
@SaucySeth7774 жыл бұрын
Callum Myers it’s all good, I was stuck on it too, that’s how I knew what was wrong lol
@SeanRun_7 жыл бұрын
{PLEASE READ} I did everything right but when I hit play and the cube hit something else. The Player Movement didn't stop ;[
@DexDesign7 жыл бұрын
i am having these problem too!
@malvack7 жыл бұрын
I had the same problem. I had misspelled OnCollisionEnter to onCollisionEnter. Use capital O and it should work great =)
@hannax2957 жыл бұрын
still have the problem. :(
@DexDesign7 жыл бұрын
me too [(
@joaquinlugo41877 жыл бұрын
did you guys figure it out cause im having the same problem?
@thimalgamage38194 жыл бұрын
Assets\PlayerCollision.cs(5,9): error CS0246: The type or namespace name 'PlayerMovement' could not be found (are you missing a using directive or an assembly reference?).can someone help me.
@kushalmittal80694 жыл бұрын
Dude same problem here
@obi-wankenobi24764 жыл бұрын
same 🥱
@kushalmittal80694 жыл бұрын
Can any one help??
@thimalgamage38194 жыл бұрын
@@kushalmittal8069 I've found out that the player movement should be the same on every script.i wrote the name all in simple letters to make it easy.
@thimalgamage38194 жыл бұрын
@@obi-wankenobi2476 I've found out that the player movement should be the same on every script.i wrote the name all in simple letters to make it easy.
@LearningCurve25264 жыл бұрын
So for everyone new struggling, go to yout object and at the top select tag, create a new tag called object. Thwn in your script (collisionInfo.gameObject.tag == "Object") it should work now Not my idea, i read it in comments somewhere and now couldn't find it again, thanks to whoever wrote it though❤️ Edit:The original comed from Peace through understanding
@limenka.4 жыл бұрын
OMG I WAS STRUGGLING FOR 7 HOURS WITH THIS VIDEO AND I JUST REALIZED THE TAG ON OBSTACLE WASNT OBSTACLE
@alexminkin23644 жыл бұрын
YES ME TOO OMG
@Tofos944 жыл бұрын
OOOOMG me2 thanks a lot xD
@ghouldrago3604 жыл бұрын
F
@a-tech54523 жыл бұрын
I made a speed ramp using the information from this video. My game is starting to come together. Thank you for giving amazing free tutorials!
@lilyofluck3712 жыл бұрын
I dont get info when I put the dot. Is that an extension? Or am I missing something.
@guyjoosten15802 жыл бұрын
I have the same problem ):
@thomasremstedt54995 жыл бұрын
Still, love how he says "Wednesday"! XD
@unstable61553 жыл бұрын
this youtube series helped me get into coding
@gameboy_694 жыл бұрын
for me playermovement script is not disabled when the cube hits the obstacle i tired like more than 4 hrs to solve but no solution yet plz anyone help me
@kingmole76174 жыл бұрын
GAMER ARYA same here Idk what to do
@feero96804 жыл бұрын
You might forget to drag the playermovement script into the playercollision script inside "movement"
@bvngmusic4 жыл бұрын
same here
@apnadekhtu4 жыл бұрын
Use GetComponent(). enabled=false; Use the above code in void start() {} method So complete code would be void start() { GetComponent(). enabled=false; } Don't forget to reply back if it's working or not.
@mgud58934 жыл бұрын
@@apnadekhtu nope
@stefanmelinte35815 жыл бұрын
I did everything but it doesnt say anything in the console
@andreasfrom90915 жыл бұрын
Same, I really need help with this
@dontknowwhy17584 жыл бұрын
same here! but why? i did everything he did...
@friday10154 жыл бұрын
For me I sure did add/create a tag but forgot to tag the obstacle.creating a tag and tagging it are two different things
@buqthebuq61874 жыл бұрын
same I need help :/
@masamotox9524 жыл бұрын
@@buqthebuq6187 You have to type UnityEngine.Debug.Log("We hit something!")
@jordanbentley10 ай бұрын
this is actually so fun to just mess around in and learn, thanks so much! :)
@Mokkamaisteri3 жыл бұрын
me trying this: Ha! It' s surely not that hard? Also me after getting the second compiler error: *furiously screams as I am breaking the ninth keyboard*
@calcuquack12063 жыл бұрын
What kind of a lunatic smashes 4.5 keyboards for every compiler error?
@yourlocalmemejoint83256 жыл бұрын
you deserve more subs
@94D33M6 жыл бұрын
yeah, and he deserves more patreons
@senadabecirovic73836 жыл бұрын
Jesil ti to balkanac
@kizaharei68803 жыл бұрын
You are my real teacher
@esy2bear9703 жыл бұрын
did you manage to make it, if yes, can you help me, after I script and set, when I click the play button, it doesn't matter, including the words on the console, can you help me how to fix it
@lil_sweden23234 жыл бұрын
3:59 how to set that in VS ? The thing that shows you what that code do. Please help
@594-d9b4 жыл бұрын
Yep, wondering as well.. :/
@cloveri13104 жыл бұрын
Did you guys figured it out?
@cloveri13104 жыл бұрын
@@594-d9b Did you figured it out?
@594-d9b4 жыл бұрын
@@cloveri1310 IIRC, I installed an older version of visual studio and had to completely wipe my version and install a new one. Make sure to delete any files that has to do with VS. Also, check the place you download.
@Billman072 жыл бұрын
12/15/21 , brutal xd died because of enjoyment of the PlayerCollision script working he got soo excited and then he exited the world , R.I.P Brutal XD
@sauseysoyafg3384 жыл бұрын
Wait what why when I hit the obstacle it didn’t turn off my player movement plz help
@scampernoodle67574 жыл бұрын
same
@pathfinder61214 жыл бұрын
Did you assign tag in Obstacle?
@Zack43434 жыл бұрын
For eveyone using the newer unity, like 2020 unity and you're running into the problem of the player not stopping/ script not unchecking on the box after you collide, then try dragging in the Player Collision script into the player cube components and then under the script section of Player Collision Script where movement is it might be at none if it is then click on the circle with a bullseye next to (none) PlayerMovement and then when the menu pops up select player option and it should work now.
@arishakhan11374 жыл бұрын
@@Zack4343 my script unchecks but cube doesn't stop
@Zack43434 жыл бұрын
@@arishakhan1137 must be the coding then I'd verify all of it and read other comments see what they say.
@roundpigeon4923 жыл бұрын
nice series I can finally understand programing
@simplynutty35294 жыл бұрын
For some reason, in the 2019.3.13f1 the “We hit something.” doesn’t work. Any suggestions to help?
@tonyG4334 жыл бұрын
You have to type UnityEngine.Debug.Log("We hit something!") Had the same problem but found the solution in the comments under ep2
@micahmurphy45464 жыл бұрын
@@tonyG433 thankyou
@musakocak6414 жыл бұрын
@@tonyG433 thanks so much man i was getting errors till i saw ur comment
@nurseda52454 жыл бұрын
@@tonyG433 thank you so much!
@bagel39294 жыл бұрын
@@tonyG433 it still isn't working for me, I tried the UnityEngine.Debug.Log("We hit something!"),
@RunwayH5 жыл бұрын
when i write public PlayerMovement movement; it dun work
@extramashup3105 жыл бұрын
i dont know if this is a thing, but i changed the "playerMovement" to a file that i named differently.
@JT-bt7yy5 жыл бұрын
me 2
@bowlorice2 жыл бұрын
bro i feel so smart i figured out how too do the tag without playing the video
@CarlLastname4 жыл бұрын
Dude can you update this video it doesn’t work any more
@redhood_dj4 жыл бұрын
it still works. I just did it. The first line of code is different tho, don't know why. Just type "void Oncollision" and press enter, let the script fill the rest and works. In the end you should have something like "private void OnCollisionEnter(Collision collisionInfo)"
@CarlLastname4 жыл бұрын
Tula alright thanks I'll try that out
@Zephyr011004 жыл бұрын
@@redhood_dj when the my player hits the obstacle the movement script does not disable. i even linked them by one script to the other
@davidkent7864 жыл бұрын
@@redhood_dj When the player hits the ground in mine, the movement script is disabled. Any solutions?
@d3rplegend2546 жыл бұрын
It says we hit an obstacle when i hit the ground, even when it is testing for a tag!
@Chris-hb3gz6 жыл бұрын
share the code
@emilianosainz47185 жыл бұрын
using UnityEngine; public class PlayerCollision : MonoBehaviour { void OnCollisionEnter(UnityEngine.Collision collisionInfo) { if (collisionInfo.gameObject.name == "Obstacle"); { Debug.Log("We hit an obstacle"); } } }@@Chris-hb3gz
@SinDoppelganger5 жыл бұрын
@@emilianosainz4718 Late answer but might help : Don't close with a ; after if (collisionInfo.gameObject.name == "Obstacle")
@_cuckk50975 жыл бұрын
Sinethic thanks so much man I finally got it to work!
@WarriorX165 жыл бұрын
@@SinDoppelganger THANK YOU SO MUCH! As a CS major, I should be ashamed lol, but I'm just glad I got it to work.
@KhalidBhat-fs9uc Жыл бұрын
I know you have just stop uploading videos but still you have helped me a lot and that is why i am commenting.
@amazingango91033 жыл бұрын
I was like " WHY ON EARTH IS THIS THING NOT WORKING" and then I realised I didn't put the tag 'Obstacle' on my obstacle and I was like " OHH, I FORGOT TO PUT IN MY TAG.. AHHHH"
@spider136493 жыл бұрын
Oh my god thank you I had the same problem for like 20min and this fixed it
@FrissR64 жыл бұрын
I did the steps but when I hit the obstacle as explained at the end of the video, my player keeps moving Even though I want it to stop and programmed it to stop I am new to coding so please help
@tristangovier48773 жыл бұрын
Can you give me a run down of your code? Did you do exactly what Brackeys did?
@basharblus3 жыл бұрын
me too i have the same problem
@basharblus3 жыл бұрын
@@tristangovier4877 i did exactly what he did using UnityEngine; public class playercollision : MonoBehaviour { public playermovment movement; void OnCollisionEnter (Collision collisionInfo) { if (collisionInfo.collider.tag == "Obstacle") { movement.enabled = false; } } }
@bonfaceosuka4 жыл бұрын
Im getting this error - Unassigned reference exception: The variable player of FollowPlayer has not been assigned , anyone with an idea of what I should do ?
@DevotedPastafarian4 жыл бұрын
click camera, scroll to follow player, assign the variable to the player
@bonfaceosuka4 жыл бұрын
@@DevotedPastafarian Thank you , I was able to finish up on that and the error was no more.
@phantomshredder13503 жыл бұрын
Can I please have help I just started unity today and it says for me the referenced script(unknown) on this behavior is missing
@bonfaceosuka3 жыл бұрын
@@phantomshredder1350 Hello there you can try clicking the camera in the editor then you insert the follow player script in it .Please let me know if this helps you
@0CDF02 жыл бұрын
I'd love to see where everyone is right now, these comments were years ago and i hope everyone that's watched this has made amazing games !
@Crashlikag62 жыл бұрын
This helped so much thank you
@imconfused69557 жыл бұрын
These are great, but I still haven't revived an answer to a question. I have been asking for a long time. Can you make it so the map random generates and the game is endless
@RitobanRoyChowdhury7 жыл бұрын
You can. Look up Procedural Generation. Sebastian Lague has a series on it, and there are plenty of Unite talks on the subject (e.g. procedural generation in Sir, You are Being Hunted). The Procedural Generation Wiki and the website donjon (donjon.bin.sh/) have some good material that you should look at.
@matttilly13026 жыл бұрын
I was thinking about trying to implement this as well. My idea was to have the ground keep extending on the z axis a the same rate at the player moves forward until player == collision
@Fwizzle456 жыл бұрын
As the other guy said, you guys are talking about procedural generation. It's the idea of randomly creating maps based on preset stuff. So it can take 10 different obstacles you created and will randomly generate them in different configurations. Could be set to do this indefinitely.
@ArnavBoom4 жыл бұрын
At this point somany ideas are floating on my mind for games that I even could code.....I already now coding but you teached me some more tipps like AddForce or else. I just want to say THANK YOU FOR THE MOTEVATION
@theplayer207 жыл бұрын
if you're back could you make a video of how to make a game like piano tiles
@booperdooper69306 жыл бұрын
lol my brain read it as 'if you're black' at first
@ItzStunt3 жыл бұрын
for anyone that is having a problem with thier players movement script disabling when you start the game, make sure you dont have a '" ; " on the 'if' line For example: you should have this: if (collisionInfo.collider.tag == "Obstacle") Not This: if (collisionInfo.collider.tag == "Obstacle");
@rishavraj35223 жыл бұрын
U are a lifesaver thank you so much
@ItzStunt3 жыл бұрын
@@rishavraj3522 np man, I was stuck here for a bit myself
@ItzStunt3 жыл бұрын
@@cold_fyre0148 what's the issue your having?
@ItzStunt3 жыл бұрын
@@cold_fyre0148 what does it say in unity?
@KoLoap8174 жыл бұрын
I don't see the options of the parameters on 4:00 how do I view them all?
@singyean4 жыл бұрын
I am having the same problem, did anyone find an answer to this?
@epicvideogamer76754 жыл бұрын
I think it is extension in visual studio code
@KoLoap8174 жыл бұрын
@@epicvideogamer7675 what is it called
@SunilNmb4 жыл бұрын
@@KoLoap817 in visual studio code, simply type unity in the extension search bar and install the unity tool 'something'
@lostyplayz27993 жыл бұрын
If you mean by the autocomplete feature, If it is not working you might have entered that statement incorrect or your Visual studio is not connected to Unity. If it is connected but it dosent works then intellisense (the auto complete) is not working.
@TheWizard9912 жыл бұрын
I've made a game called Jumpy Cube, give it a try, it's free to download. Brackeys videos helped me to learn how to make games. Thank you so much for doing these videos for us.
@jaydemn48883 жыл бұрын
Whenever I touch my obstacle it dosent say I hit anything and I copied every bit of code word by word. It dosent even show me any errors what am I doing wrong!
@danfromzr32893 жыл бұрын
Same
@AkashKumar-hl8wz3 жыл бұрын
Did you got the solution?
@danfromzr32893 жыл бұрын
@@AkashKumar-hl8wz i think I had to Google it. I forgot the solution. Just go back step by step.
@angelicus-93075 жыл бұрын
Man, i can never listen to that 0.75 speed. So i will just pause when i am missing something. Listen to someone at 0.75 or 0.50 speed, makes them sound a bit drunk :P
@dante36034 жыл бұрын
If your player stops immediately after it collides on the ground, the best solution would be to add different tags to the ground, player, & obstacle. Remove the semi-colon ; on the if statement, and try to restart the engine. I did all those took me hours, been searching for different codes too but it all ended with me going back here and redoing all the stuff. It works.
@neptunestardust2207 Жыл бұрын
you are a godsend thank you
@krungles17523 жыл бұрын
Could someone help me i am using a newer version of unity and when i type this in: void OnCollisionEnter (Collision collisionInfo) { if (collisionInfo.collider.tag == "Obstacle"); { movement.enabled = false; } } } It just stops the movement when its hits the floor rather than start than stopping when it hits the obstacle
@broken.league23 жыл бұрын
me too bro this is annoying
@mr.nephogram3 жыл бұрын
Maybe you set the grounds tag to obstacle?
@amanjha59163 жыл бұрын
If the first collision isn't being detected try void OnCollisionEnter(Collision collision) { Debug.Log("Hit"); }
@gabrieldelrosario66923 жыл бұрын
Thank you for this, I was wondering why Debug.Log wasn't working