These tuturials by Dani Krossing are by far the best ones for beginners on Unity that i have found. They are recent and up to date and while Brackey and others might have been god at one time, they are outdated using a much older version of Unity and too much have changed. I Hope Dani will try and keep this series up to date when unity decide to make changes.
My friend, you helped me get my first job with JavaScript and now 5 years later I'm here again to learn another tool, thank you I love your content. From: 🇧🇷🇧🇷🇧🇷
bro, you can explain so good, that my grandmother that can't speak english would understand. Thx man you are the only one, that explains good, doesn't waste time, explains simple and is smart!
This is where things get really exciting! I remember using the map editors for games like Heroes 2 and Warcraft 3, and og Starcraft when I was a kid, and little did I know at that time that using triggered events was the same basic premise as coders were using for all games
Oh gods, if I knew how to put a lot of likes under this video - I would do it. A detailed description with several solutions, and explanations for them - this is what I really lacked. It was really helpful.
Hi Dani could you please explain how to determine contact points while using OnTriggerEnter2D with GetContact? To check if the player collides with the enemy from above and kills the enemy or collides with the enemy from the sides and takes damage instead. That would be super helpful! You are a great teacher!
Hello, I have a problem, in the OnTriggerStay method, does it allow you to use switch(Collider.gameObject), and different cases?, to act depending on which trigger is pressed. Thank you
Hi dani, I am having an issue regarding a trigger on an enemy. I put a collision trigger in which the sole purpose is to activate voice lines when the player enters the collision trigger area. The issue is that the collision trigger is activating all other objects such as pickup, doors, and objectives that softlock the game. I received this project from my instructor, so I have little experience with pure game design. How can I make it so that the collision trigger only acts for the voice lines and does not trigger anything else? Thank you, and I wish you all the best!
Great vídeo! I'm working on my first 3D project in Unity right now, just getting to know to engine, and this video helped me understand the "is trigger" option. I know this is a little off topic, but, I see that you are using a Blue Yeti to record your voice, and the sound quality is so good. I have one too, and I wonder, do you apply any filters or things like that in the post production?
I apply filters in Adobe Premiere. No matter which mic you use, you should always apply audio filters to get better audio, since the raw sound isn’t that good. 🙂 I have a video on it on my channel under my Premiere playlist.
That's awesome. Maybe you can help me. I cant fix the problem my Player goes through walls.. Can you make A basics Video about Player movement + walls?
how do I use another game objects trigger for the script. because i want to be able to delete the trigger afterword but i have extra parts to the script so i need to make it split.
Hi Dani - Great tutorial. I have an issue where trigger collider covers up a game object that I want to click on. Is there a way where my gameObject would always have a priority of getting a click event? I tried to put it on different levels but doesn't work. I ended up with hacky solution where if object enters trigger, I make it smaller and on exit, I reset trigger to original size. Any suggestions would be appreciated.
I'm not sure I 100% follow what you are sitting with in your project... So you have an object, with a collider component on it, which is set to IsTrigger... Correct? 🙂 And you want it to register, if you click on it? I'm not sure I understand the part about "priority"? If you have a collider which is set to IsTrigger, you just write in the code, that you want to register a OnTriggerEnter() event, and then look for a keypress? Or are you saying you want something to happen, if you look at the object and do a keypress? Instead of entering the trigger? Which in that case, you have to do a raycast instead of using colliders.
I need to make a 2d coloring game in unity. There is a painting, colors are available in right side. The task to be done is drag and drop the color into the different sections of the paintings. Please help with it. Make a tutorial video because there is not any available on youtube.
So this is how I can talk to girls! kidding of course! But this is very interesting stuff! I was looking for a method to have a continuous Collision or Trigger event that I could control how often it happened within 1 second. Using OnCollisionStay is entirely to much, and there's no way to control it. How would you get a happy middle ground between OnTriggerEnter and OnTriggerStay?
That’s the plan further down the line. 🙂 There are still some key points I need to touch upon, before I wanna show how to make a small game. For example animations, UI, game structure, etc… But once I have caught us up in my lessons, I will definitely make a video. 😊
@@Dani_Krossing Sorry. I was pissed last night after 7 hours of not getting it to work. My player can't enter colliders. They stop before before the border of the collider. I later found out that Character Controllers can't enter colliders, which is not found on the internet. I've searched hundreds of articles and watched 19 videos. NONE of them mention character controllers can't use OnCollisionEnter.
can someone please tell me what is wrong in this line of code or can someone tell me some potencial fixs that could make this code to funcion private void OnCollisionEnter2D(Collision2D collision) { if (collision.gameObject.name == "puščica") { code(i tested it adn it works9 }
I wouldn't use special characters for naming things if I were you. "puščica" is a bit too easy to misspell, and I'm not sure if some Unity features don't support that type of naming. Second, you forgot a ) in the following line bellow: code(i tested it adn it works9 Make sure you don't type too fast, and always double check for spelling errors.
These tuturials by Dani Krossing are by far the best ones for beginners on Unity that i have found. They are recent and up to date and while Brackey and others might have been god at one time, they are outdated using a much older version of Unity and too much have changed. I Hope Dani will try and keep this series up to date when unity decide to make changes.
I never realized Brackeys was god once… maybe I need to give that channel a second chance
My friend, you helped me get my first job with JavaScript and now 5 years later I'm here again to learn another tool, thank you I love your content.
From: 🇧🇷🇧🇷🇧🇷
bro, you can explain so good, that my grandmother that can't speak english would understand. Thx man you are the only one, that explains good, doesn't waste time, explains simple and is smart!
This is where things get really exciting!
I remember using the map editors for games like Heroes 2 and Warcraft 3, and og Starcraft when I was a kid, and little did I know at that time that using triggered events was the same basic premise as coders were using for all games
man your a genius i have been looking tutorials for collision detection for so long and i finally found it
Oh gods, if I knew how to put a lot of likes under this video - I would do it.
A detailed description with several solutions, and explanations for them - this is what I really lacked. It was really helpful.
I love your explanation. IT is clear and you make it seem so simple. Thanks.
Awesome!
I'm learning to code c# thanks to you!
Keep it coming!
Thank you for this magnificent tutorial Blonde Musk!
Thank you, you made me solve my error that I spent hours on trying to fix
Brilliant tutorial. Thanks a lot. Saved my graduation project.
Thanks, you really help me a lot. Btw, how many videos are going to be in this series?
I have no fixed amount planned. I’m just gonna keep on teaching as much as I know. 🙂
@@Dani_Krossing Great news! thanks a lot!
Hi Dani could you please explain how to determine contact points while using OnTriggerEnter2D with GetContact?
To check if the player collides with the enemy from above and kills the enemy or collides with the enemy from the sides and takes damage instead.
That would be super helpful! You are a great teacher!
The simplest way would probably just be to compare the x and/or y coordinates of the player and collider when they touch.
@@EnvoyOfFabulousness Yea i got it working after posting this comment :P
You are great explaining.
Sir make more videos on unity
I love the way you explain ❤️❤️🤞🤞
Hello, I have a problem, in the OnTriggerStay method, does it allow you to use switch(Collider.gameObject), and different cases?, to act depending on which trigger is pressed.
Thank you
Hi dani, I am having an issue regarding a trigger on an enemy. I put a collision trigger in which the sole purpose is to activate voice lines when the player enters the collision trigger area. The issue is that the collision trigger is activating all other objects such as pickup, doors, and objectives that softlock the game. I received this project from my instructor, so I have little experience with pure game design.
How can I make it so that the collision trigger only acts for the voice lines and does not trigger anything else? Thank you, and I wish you all the best!
does the colision datatype have to be in the Ontrigger enter function or i can use it outside of it only to check if there is a colision
Great vídeo! I'm working on my first 3D project in Unity right now, just getting to know to engine, and this video helped me understand the "is trigger" option.
I know this is a little off topic, but, I see that you are using a Blue Yeti to record your voice, and the sound quality is so good. I have one too, and I wonder, do you apply any filters or things like that in the post production?
I apply filters in Adobe Premiere. No matter which mic you use, you should always apply audio filters to get better audio, since the raw sound isn’t that good. 🙂 I have a video on it on my channel under my Premiere playlist.
@@Dani_Krossing oh, thank you so much! I'll watch it!
How can I make the bullet pass through objects? My bullet is spawning inside my player, detecting the player, then disappearing.
That's awesome. Maybe you can help me. I cant fix the problem my Player goes through walls.. Can you make A basics Video about Player movement + walls?
for some reason whenever I type OnTrigger it doesnt autocomplete and if I type it out myself it doesnt work.
how do I use another game objects trigger for the script. because i want to be able to delete the trigger afterword but i have extra parts to the script so i need to make it split.
Hi Dani - Great tutorial. I have an issue where trigger collider covers up a game object that I want to click on. Is there a way where my gameObject would always have a priority of getting a click event? I tried to put it on different levels but doesn't work. I ended up with hacky solution where if object enters trigger, I make it smaller and on exit, I reset trigger to original size. Any suggestions would be appreciated.
I'm not sure I 100% follow what you are sitting with in your project...
So you have an object, with a collider component on it, which is set to IsTrigger... Correct? 🙂 And you want it to register, if you click on it?
I'm not sure I understand the part about "priority"? If you have a collider which is set to IsTrigger, you just write in the code, that you want to register a OnTriggerEnter() event, and then look for a keypress?
Or are you saying you want something to happen, if you look at the object and do a keypress? Instead of entering the trigger? Which in that case, you have to do a raycast instead of using colliders.
Hey what’s the difference when making a game in mmo and a regular game I been trying to make an mmo game but I don’t know how to start…please help..!!
I need to make a 2d coloring game in unity. There is a painting, colors are available in right side. The task to be done is drag and drop the color into the different sections of the paintings. Please help with it. Make a tutorial video because there is not any available on youtube.
nice video
:)
So this is how I can talk to girls! kidding of course! But this is very interesting stuff! I was looking for a method to have a continuous Collision or Trigger event that I could control how often it happened within 1 second. Using OnCollisionStay is entirely to much, and there's no way to control it. How would you get a happy middle ground between OnTriggerEnter and OnTriggerStay?
how do i check which side of an object i am touching?
You look like Elon Musk... Nice tutorials btw :)
Sir make video on animation,animator,UI and explain its components.
I get bored when read unity documentation .
I have videos on that on my other Unity playlist 🙂
@@Dani_Krossing ok sir🙏🙏
Hi, will there be any video about the interface in unity?
I already have one which isn’t part of this playlist 🙂 you can find it in my other Unity playlist
@@Dani_Krossing Oh. awesome I will watch that.
the trigger wasn't working at all
at some point can we watch how you would make a small game
That’s the plan further down the line. 🙂 There are still some key points I need to touch upon, before I wanna show how to make a small game. For example animations, UI, game structure, etc… But once I have caught us up in my lessons, I will definitely make a video. 😊
Ball!
bro dont say my ball 😆
You look different like almost two different people
He looks like Elon musk
Elon musk??
Definitely some musk vibes here 😂
Nope. Wrong. You can't enter a collider if you don't set is Trigger to true. And if you do that, you will go through the ball instead of hitting it.
I am not wrong 🙂 you don’t need to set it to trigger for it to work. Just use OnCollisionEnter in your code, instead of OnTriggerEnter.
@@Dani_Krossing Sorry. I was pissed last night after 7 hours of not getting it to work. My player can't enter colliders. They stop before before the border of the collider. I later found out that Character Controllers can't enter colliders, which is not found on the internet. I've searched hundreds of articles and watched 19 videos. NONE of them mention character controllers can't use OnCollisionEnter.
can someone please tell me what is wrong in this line of code or can someone tell me some potencial fixs that could make this code to funcion
private void OnCollisionEnter2D(Collision2D collision)
{
if (collision.gameObject.name == "puščica")
{
code(i tested it adn it works9
}
}
I wouldn't use special characters for naming things if I were you. "puščica" is a bit too easy to misspell, and I'm not sure if some Unity features don't support that type of naming.
Second, you forgot a ) in the following line bellow:
code(i tested it adn it works9
Make sure you don't type too fast, and always double check for spelling errors.
@@Dani_Krossing tnx soo much it works now I misspeled a name tnx again