Тёмный

How to Make a Game - Unity Beginner Tutorial - New Version! 

Jason Weimann
Подписаться 210 тыс.
Просмотров 673 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1,3 тыс.   
@WisestMongoloid
@WisestMongoloid 3 года назад
IMPORTANT NOTE: unfortunately, the video does not show the script being added to the bird, so the coding does not really affect the game. Took me forever to figure it out, since I am new at this. Simply drag the script onto the component list and things will just start to work. In the video, the "Script" component just appears there @40:58. This is an EXCELLENT tutorial otherwise :).
@tomcartwright3160
@tomcartwright3160 3 года назад
I can't add my script to the bird object? and all the code inside the script isn't color coded? can you help? when I try apply my script to the object it comes up with an error saying 'Cannot add script component 'Bird' Make sure that there are no compile errors and that the class name and file name match' . I've named the class name and the object name the same too.
@tomcartwright3160
@tomcartwright3160 3 года назад
okay, so I've now added the script component to the object. but the code isn't working? it's still not color coded, here it is: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bird : MonoBehaviour { // Start is called before the first frame update void Start() { GetComponent().isKinematic = true; } void OnMouseDown() { GetComponent().color = Color.red; } void OnMouseUp() { GetComponent().color = Color.white; } void OnMouseDrag() { //Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); } // Update is called once per frame void Update() { } }
@greskakis6196
@greskakis6196 3 года назад
you are best guy ever
@theforgot3n1
@theforgot3n1 3 года назад
@@tomcartwright3160 I believe you might be having issues getting visual studio recognize Unity and vice-verse. There is some stuff you have to do to set up visual studio with Unity. Have you done it?
@umsnowie1813
@umsnowie1813 3 года назад
@Vlad Simionescu ull see #Bird from scripts, drag it to redbird (in hierarchy)
@i_am_reshad
@i_am_reshad 3 года назад
I am at the 1 hour 44 minutes. I understand every part of video till now. Thank you
@i_am_reshad
@i_am_reshad 3 года назад
I finished the game . thank you
@benstatgod
@benstatgod 3 года назад
This is awesome! Very informative and what a great feeling it is to have an actual game after only a few hours! Learned a lot and had fun doing it too! Thank you
@retex73
@retex73 3 года назад
To make the bird change colour: 1> Drag the Bird.cs script onto the Inspector panel 2> In the Rigidbody 2D component (In the Inspector panel), make sure 'Simulated' is checked After pressing play, the bird should now change colour on mouse down *Took me a while to figure that one out, especially the 'Simulated' check box grr
@emiribric4294
@emiribric4294 3 года назад
Thanks alot!
@laukcoder9901
@laukcoder9901 3 года назад
That was pretty awesome! I've been following a bunch of tutorials but yours was very clear and informative. It wasn't bogged down with too much fluff and it wasn't too light on the details either.
@j.y6599
@j.y6599 3 года назад
best explanation for developing game using unity so far....can you make a video on how to make sound for game...
@kyium_
@kyium_ 2 года назад
If you bird moves to the middle and won't move at 51:23 then you may have had the same problem as me. I think the default camera settings for a 2d application are different on newer versions of unity. I fixed this by clicking the main camera in the scene editor, then changing the 'Projection' setting from perspective to orthographic.
@Lita1
@Lita1 2 года назад
It's so fun and cool doing this. Why not? I liked this video yes!!!!👍😅
@prostithony9969
@prostithony9969 3 года назад
Awesome, thanks for that very instructive video
@timiakande8901
@timiakande8901 3 года назад
Thank you so much this is very helpful
@sonilpro8526
@sonilpro8526 3 года назад
Hey. How would you fix the line that started to appear when you added the background color? I have the exact same issue between sprites.
@RockyOutdoorss
@RockyOutdoorss 3 года назад
I'm stuck at 57:22 and don't know what I'm doing wrong :/ When i enter : Vector2 direction = _startPosition - currentPosition; I get an error saying Compiler Error CS0019 Operator 'operator' cannot be applied to operands of type 'type' and 'type' I kind of want to give up and come back when I have more coding knowledge.
@RockyOutdoorss
@RockyOutdoorss 3 года назад
For some reason i had object_startPosition; instead of Vector2 _startPosition; ... oh the time that i have wasted!
@Turtleguy716
@Turtleguy716 3 года назад
I'm wanting to learn how to make my own game I've got the build box and unreal engine don't know how the fine details work
@PacZackMan
@PacZackMan 3 года назад
when i wrote the stimulated code is not toggling to kinematics
@opensourcefreedom9241
@opensourcefreedom9241 3 года назад
Adding the "bird" component to the bird fixed my issue. at 38:38 the "Bird component" wasn't in his inspector, but at 41:04 (the next time you see the inspector) the component is magically there. I hope he edits the video to make sure that newbies like me don't miss that part in the future.
@Yaybuttons898
@Yaybuttons898 3 года назад
@@opensourcefreedom9241 Thank you.
@thisdyingsoul666
@thisdyingsoul666 3 года назад
For those who got stuck in the OnMouseDown that are not turning the bird red: There are two missing things on the tutorial (so far, i´m doing it too :) ): 1) He attach the script as a component to the bird. You can do this by hold click on the Bird script on the assets tab and dragging to the components of the bird on the right. 2) He return the Simulated variable of RigidBody 2D back to true. Click detection will not work without it.
@GothGeekAnimeFreak
@GothGeekAnimeFreak 3 года назад
Thank you! got really stuck here :)
@gamemennekes2602
@gamemennekes2602 3 года назад
I dont get where do i have to drag it ???
@gamemennekes2602
@gamemennekes2602 3 года назад
it says cant add script beacause the script class cannot be found
@yazanjordan3103
@yazanjordan3103 3 года назад
yes Exactly .. Thank you
@adityarevankar6529
@adityarevankar6529 3 года назад
Thank You man, wasted about 2 days for this.
@tauheedgamedev2388
@tauheedgamedev2388 3 года назад
Great Tutorial, I started learning Unity using your tutorials and now I'm working on a my own commercial game for mobile. Thanks 👍
@ziasher4190
@ziasher4190 3 года назад
hello : D
@WarThrone
@WarThrone 3 года назад
Wow nice, you got a heart
@panomapet9441
@panomapet9441 3 года назад
How long did it take you?
@tauheedgamedev2388
@tauheedgamedev2388 3 года назад
Probably 6 Months or so consistently. Come check out my latest video, I breakdown my journey
@angelkaki5707
@angelkaki5707 3 года назад
Can get pass the onmousedown code, it won’t work u.u
@RugbugRedfern
@RugbugRedfern 3 года назад
I'm really glad that there's a tutorial for beginners out that teaches good coding practices. Amazing work Jason!
@thisisraaain
@thisisraaain 3 года назад
Me : do everything correctly Unity : no Edit : Thanks For 11 Like ❤️
@elbyful9750
@elbyful9750 3 года назад
Funny thing, I just finished watching your 2019 Unity Tutorial and now I get blessed with the 2020 version! Thanks Jason! Much respect from Hong Kong!
@mohammedeidy988
@mohammedeidy988 3 года назад
same
@AnimilesYT
@AnimilesYT 3 года назад
You manage to explain everything really clearly without taking ages. And unlike many other tutorials you even include things like basic navigation. I am not a complete beginner, but there are a lot of little things that always took me a while to do while you explained how to do them easily and properly. I'm only 35 minutes into the tutorial, but I have been doing many things by myself first to see if I can figure out how to do it, and then I watch how you do it in a different and better way. I wish I had this tutorial when I was just starting out. I honestly think that this tutorial is a must for everyone who is starting out. There is just one thing that is just not acceptable. You use the dark theme for unity, which is really good. But at the same time you use the light theme for Visual Studio. That is just not acceptable! xD
@AnimilesYT
@AnimilesYT 3 года назад
@Rawa MAHMOUD You are lucky to start with this. Good luck on your journey with Unity :D
@AnimilesYT
@AnimilesYT 3 года назад
@Tokey Do you miss a "using" at the top? It may also help to restart Unity if you haven't already tried this. These are the things I can think of right now. Hopefully it helps
@mrSULAVmrSULKO
@mrSULAVmrSULKO 3 года назад
NOTE: If your boxes do not snap to the ground, you should hold Ctrl while moving them for more accurate snapping.
@calmguitar8530
@calmguitar8530 2 года назад
I spent like an hour finding why they didn’t snap right. And right after I found out why I see this comment.
@alxdrksoul
@alxdrksoul 2 года назад
Thank you so much :D
@dizzy5240
@dizzy5240 2 года назад
hi can u help my bird is flashing and i dontknow how to fix it
@jason-vg3kk
@jason-vg3kk 2 года назад
thank you
@kewtomrao
@kewtomrao 3 года назад
What a surprise!I started with the same tutorial back then when it was published.Now I have a game on the google play store and participated in a gameJam.Thank you jason.I ll share this with my friends :)
@RobG88
@RobG88 3 года назад
BUG REPORT: Guess it's not really a bug, but needs some sort of variable when resetting. This happens when the BIRD COLLIDES with more than one crate and/or the ground and therefore makes multiple COROUTINE calls. (If you add a counter to each call to the coroutine you can see that sometimes up to 9 calls are made to ResetAfterDelay()) Subsequently, if you launch the BIRD before all the coroutines finish, the bird is SNAPPED back to pre-launch. This can be seen in the video @ 2:30:50
@BMiBudz
@BMiBudz 3 года назад
when i try to use the box snapping effect it doesnt let me place it on the ground flat at all, its either just floating or on top of the floor, no matter what i do this doesnt change... i have expanded the area in more ways than one gone back to original...everything and yet the snapping effect doesnt "sync" properly... im starting to think that unity isnt very clear cut of a program, seems very sloppy on how it does things... like example why have a massive grid that your working on if you cant get things to follow it by the actual squares itself (that would make things tessellate properly and also be neater)...
@athulrajtheno1
@athulrajtheno1 3 года назад
Pls make a totorial on 3d games (I know that there are a lot of totorial on that on RU-vid but I understand what you say much easily)
@seanl9141
@seanl9141 3 года назад
Yea Brackeys has some but he explains everything too fast for me to keep up and understand
@gf387
@gf387 3 года назад
I am also decided.
@athulrajtheno1
@athulrajtheno1 3 года назад
@@seanl9141 yeah
@retrogamer947
@retrogamer947 3 года назад
@@seanl9141 i find brackeys hard to follow. brakcyes skips lot of stuff.
@Gamer-py4mq
@Gamer-py4mq 3 года назад
Tutorials*
@parthgupta4850
@parthgupta4850 3 года назад
For all those, bird's image hiding in the background try using the "order in layer" in inspector tab and make it's value to 1. edit: you are great! solution is already there in the video!
@his_of_ham
@his_of_ham 3 года назад
THANK YOU SO MUCH
@parthgupta4850
@parthgupta4850 3 года назад
@@his_of_ham My Pleasure!
@mtgotix
@mtgotix 3 года назад
Thank you so much !
@parthgupta4850
@parthgupta4850 3 года назад
@@mtgotix welcome!
@anujpal5344
@anujpal5344 3 года назад
thanks mate
@sami_Sahraoi
@sami_Sahraoi 3 года назад
we can do Vector2 instead of Vector3 in mouse drag: private void OnMouseDrag() { Vector2 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition); transform.position = mousePos; }
@robllewellyn
@robllewellyn 2 года назад
I was going to ask this too. I was wondering why it would need to be Vector3 if we were then effectively having to handle the Z from -10. Many ways to "skin the cat" I guess. Such a great tutorial..
@evan73858
@evan73858 3 года назад
This video is about 2 hours long but I spent 10 hours on it just so I learned EVERYTHING that was going on. Thank you so much great video and clear to understand :)
@koukikiller1182
@koukikiller1182 3 года назад
i spent a week on it 😂
@kiha215
@kiha215 3 года назад
I just copied it without any sign of brain activity
@chronosbat
@chronosbat 3 года назад
@@kiha215 better than just watching the video without doing anything else but u prob shouldnt do that lol
@programcoderpro8188
@programcoderpro8188 3 года назад
@@koukikiller1182 me pro code me do it in 2 month u ppl are nob
@thepenguincolony6039
@thepenguincolony6039 3 года назад
@@programcoderpro8188 3 months
@clyded8404
@clyded8404 3 года назад
U know wat I'm in quarantine I'm bored af and I dont have any skills might aswell turn on the pc and make a game
@techstacker5361
@techstacker5361 3 года назад
Of course you have skills, you just need to unlock them, and learning game dev is an excellent tool for that 💪
@Sminlek
@Sminlek 3 года назад
Did the same but for when I broke my leg. It is such a fun skill to have.
@pants1403
@pants1403 2 года назад
You'll have no skills if you don't go out and seek them. Same goes for many things in life. People aren't just naturally good at everything, they work for it.
@NickyDekker89
@NickyDekker89 3 года назад
Hey Jason, love your vids man! Any chance you will do some videos on RTS games in Unity3D?
@Unity3dCollege
@Unity3dCollege 3 года назад
Definitely something I want to do. In a multi-player scenario
@NickyDekker89
@NickyDekker89 3 года назад
@@Unity3dCollege Awesome. Looking forward to that when/if it drops. 👍
@juanpercylopez2578
@juanpercylopez2578 3 года назад
@@Unity3dCollege waiting for that :D
@gf387
@gf387 3 года назад
@@Unity3dCollege yeaaah thats 😎.
@saatvikjha4035
@saatvikjha4035 2 года назад
If you code and drop your script in the component list of Red Bird then it will work but for those who can not make this work like me, just change the body type to kinematic in Rigidbody 2D of component list of Red Bird
@PsychoticSalamander
@PsychoticSalamander 3 года назад
for some reason the first animation that we learn (when the bird flaps its wings) doesnt make the bird flap its wings, for me the bird flashes on and off screen
@contempoarycode5710
@contempoarycode5710 3 года назад
i got that same issue, just raise the "Order in layer"
@carfunkledflip1
@carfunkledflip1 3 года назад
@@contempoarycode5710 thank you i had the same problem
@cutterXXX123
@cutterXXX123 2 года назад
@@contempoarycode5710 Thanks for the info, but I had to lower the order to -1 to see it before the animation Copy/Paste then after I had to add to it put it at 2 to see it.
@ZemZem
@ZemZem 3 года назад
"I'll read through the entire thing really fast and agree on it"
@aurorahubps
@aurorahubps 3 года назад
noice
@tnsquidd
@tnsquidd 3 года назад
lol
@MasterQuestMaster
@MasterQuestMaster 3 года назад
If anyone has trouble with the grid snapping not allowing your to line up your crates with the ground, then go to Edit -> Grid Settings and change the size to 0.5. This actually makes the grid look bigger, but in reality, it's smaller.
@ikigai_games
@ikigai_games Год назад
Thanks!
@cameron.t
@cameron.t 3 года назад
FYI for anybody confused about the Cinemachine part around 2:26:08, Cinemachine will show up in GameObject after it is installed/activated. Cinemachine used to show up in the toolbar like this video. I spent 10 mins on this, found this info in the description box. 😂
@mrdank3608
@mrdank3608 3 года назад
Thank you so much for this, I was so confused and was looking for someone to comment about this.
@cindus
@cindus 2 года назад
Thank you!
@UnsolvoPedia
@UnsolvoPedia 3 года назад
Im having a problem where the void OnMouseDown() wont work on the bird idk what the problem is but Idk how to fix it
@VSpook
@VSpook 2 года назад
Day 1: Progress: 1:17:52 Day 2: Progress: 2:02:42 Day 3: Progress 2:26:34 done
@hitarthdoctor2695
@hitarthdoctor2695 3 года назад
You make training juniors easy with these videos.
@Alkhalidi44
@Alkhalidi44 2 года назад
quick notice here for people who have this problem : " when I added the background into the scene it just overlays the bird. The bird wouldnt show as the background was covering it" what I did to solve it : On the right side of the screen when you click on the bird, there is a text that says "Sprite Renderer" that has next to it a check box. in the sprite renderer box there is a list called "Additional Settings". under that list is 2 things you can modify, one is "Sorting Layer" and the other is "Order in Layer" . the one that you want is "Order in Layer", in the box next to that make sure (while the bird is the chosen object) that the value is set to "1" and let the background's "Order in layer" value be set to 0. that way you can stop the bird from being overlaid by the background. hope this helps . edit : ok for those who continued watching you will realize he addresses the problem in the next segment of the video following the part that the problem occurs in, so you can ignore this comment and follow his method lol
@DDM-kiryu
@DDM-kiryu 2 года назад
thanks
@donatelonow
@donatelonow 3 года назад
Thank you, Jason. That's an excellent tutorial and helped me to put things into a better perspective after going through the basics in one of Unity 2D books. If I may make a suggestion, I'd suggest to switch Visual Studio to a dark team as it is easier on the eyes. Especially when there are a lot of switching between the dark Unity window and light VS window.
@rigbylast9438
@rigbylast9438 3 года назад
Dude this helped alot, I am new at this unity thing and this gave me a kick start to my game developing.
@rodnymella1004
@rodnymella1004 3 года назад
You are an amazing teacher, this single tutorial alone I learned a lot now I am interested in learning more. Going to dig more tutorials from your channel. Great material. Thanks a lot Jason!
@davidjohnson3180
@davidjohnson3180 3 года назад
Absolutely cracking tutorial, so nice to watch someone who is articulate, knows the subject matter and can relate the materials without constantly repeating expletives. A punchy to the point tutorial, which also teaches a great amount of detail.
@creatingcrates5870
@creatingcrates5870 3 года назад
My first day using Unity I'll come back again to see how much i improved Edit after two months: whaat just two months? that was faster than i thought! anyway i already made a game for a gameJam called miniJam in 3 days and it was my first game, i guess within two months i learned sooo much more than i thought i would and i am thinking to shift to robot engineering rather than making games.
@mariuskronvald5208
@mariuskronvald5208 3 года назад
bruh thats epic
@istachi
@istachi 3 года назад
6 months update now
@KingMB_XJ_Official
@KingMB_XJ_Official 3 года назад
Fellas, is it game piracy if you remake the game yourself?
@mooshroom9783
@mooshroom9783 3 года назад
I have watched the old tutorial before and honestly I think it's great. I'm relatively young so I won't be making a game public any time soon but I am very interested in coding and especially game development. In the future I hope I'll have enough experience and talent to make a full 3d game with unity and blender. And to anyone starting out(like me) don't worry if you don't understand or if it seems overwhelming, because it is. It takes years for someone to make a good quality game so don't be worried if it takes a long time.
@veganguyusa2287
@veganguyusa2287 3 года назад
who came from brackeys?
@PychEasy
@PychEasy 3 года назад
my bird still falls when i have his code though 41:11
@antunnutna2376
@antunnutna2376 3 года назад
Hey man check your Body type mine was set on Dynamic and it should be on Kinetic!!! Try if that helps!!!
@shaggythehippy7239
@shaggythehippy7239 3 года назад
@@antunnutna2376 Thanks, because I had the same question
@antunnutna2376
@antunnutna2376 3 года назад
@@shaggythehippy7239 hey also check if your code is attached to the bird!!! Mine wasnt and that was the main issue!!!
@shaggythehippy7239
@shaggythehippy7239 3 года назад
@antun nutna Yeah I noticed when I did the second part with the OnMouseDown that it didn't work and I zoomed in the video if there were something missing. Thanks for the heads up!
@simonkok9154
@simonkok9154 3 года назад
@@antunnutna2376 thanks man
@davidfrench3421
@davidfrench3421 3 года назад
This is the best tutorial I’ve ever followed on RU-vid! I’m new to game dev - but work as a web developer so I’ve seen a lot of similar content but this has been a stand out! A well thought out and well delivered tutorial. Thanks for putting in the time and effort!!!
@thecupcakefoxblog
@thecupcakefoxblog 3 года назад
Normally I don’t want such in-depth tutorials because I’ll be looking for something specific. BUT I’m 100% beginner to game development so I’m SOOOO appreciative for all this detail in your tutorial. I think this is very beginner-friendly.
@renneedwards9826
@renneedwards9826 2 года назад
Almost thought this was JERRY SEINFELD teaching about video game development!!! 😩🤣💅🏾 Ok back to my books and designing. 😁💙💯📚
@justforsavingclips3785
@justforsavingclips3785 3 года назад
If you are tired of removing 'private' at the start of functions, go to tools>options>Options for Unity>General>Code edition>Unity messages scope and set it to default Edit: Do this in Visual studio not unity
@hunter7777
@hunter7777 3 года назад
OK...when I get to the create C# script & input the first line of code you suggest "GetComponent().isKinematic = True;" my bird still falls. Update: I looked at your video a little more closely & noticed that you had Scripts enabled, while mine was not. I had to go to "Add Component" & add Scripts & then select the "Bird" script, and it finally worked. (Another thing you should show in your video for newbies.)
@BoxandJacquilope
@BoxandJacquilope 3 года назад
Thank you so much for this amazing tutorial! I legit have not stopped thinking about it all day :) Legit even making that bird turn red when you click on it has brought a huge smile to my face
@eliotjanvier4653
@eliotjanvier4653 3 года назад
this is the first tutorial in my life that actually preshots the issues i have and solve them, you did a pretty good job there!
@aroldo1959
@aroldo1959 2 года назад
Jason, Happy New year! Awesome Tutorial! For users on Unity 2018.4 and up after they import the Cinemachine, the Cinemachine menu option moved under the GameObject menu. There you can add the 2D Camera.
@ferndoingstuff
@ferndoingstuff 3 года назад
Thank you for your videos
@Unity3dCollege
@Unity3dCollege 3 года назад
Thx!
@plumserve
@plumserve 3 года назад
I have solved this: > The answer is that I typed onEnable instead of OnEnable when I initialised _monsters That error didn't show up, but caused the subsequent error to occur as there was nothing in _monsters It took me a few hours to spot, but is was great to get it working in the end.
@shadowninja1182
@shadowninja1182 3 года назад
i keep on asking questions and then I got back to unity and do something and then I immediately find the answer of my question and then delete the comment
@Daniel-kp1lz
@Daniel-kp1lz 3 года назад
Why would you delete the comment? other people can use your questions to find help solving the same issue if they run into it.
@arstino
@arstino 2 года назад
I'm using VS code instead of VS community because I was learning C# before I found this video, I would feel better using it as well because I have used it for both C and C#, but whenever I try to write the code it will not auto complete like it would in the video... Can I do something to fix it or do I have to use VS community?
@ravimadhavi2006
@ravimadhavi2006 3 года назад
44:48 My Bird is still not Changing color please tell how can i fix this
@thepotatoemaster6865
@thepotatoemaster6865 3 года назад
click on your bird press "add component" and go to the bottom and press "add script" then choose the script you will use
@homestar99
@homestar99 3 года назад
@@thepotatoemaster6865 you sir just saved me, thank you!
@thepotatoemaster6865
@thepotatoemaster6865 3 года назад
@@homestar99 np!
@ravimadhavi2006
@ravimadhavi2006 3 года назад
@The Potate Master Thanks a lot sir , i also thought that could be the mistake because in The video in the component panel thing the script was added i also thought that could be the mistake but didnt know how to add the script THANKS A LOT SIR !!!!
@timothygiese6726
@timothygiese6726 3 года назад
I had your same issue and followed the same advice. When it didn't work I learned a very important lessor. I had messed with the Simulated checkbox to see the effects for myself and left it off. Note: An object that is not Simulated apparently cannot be clicked on. Figured that might help anyone else who has that issue and did the previous already.
@BMiBudz
@BMiBudz 3 года назад
jesus for those stuck on the same issue i am which btw is a huge mistake to miss in the video.... you have to drag the script onto the red bird hierarchy AND THEN YOU HAVE TO SAVE IN UNITY ASWELL!!!
@PeterJohnson76
@PeterJohnson76 3 года назад
Thanks so much Jason. I have expanded this to have 20 levels, a menu, health bar, extra monsters, sounds and other objects.
@carlabozintan3670
@carlabozintan3670 2 года назад
how did u managed to put a health bar, is there a chance that u can give me some tips?
@PeterJohnson76
@PeterJohnson76 2 года назад
@@carlabozintan3670 check out the channel Natty Creations.
@hanoofystar
@hanoofystar 3 года назад
suddenly when I start the game after adding the monster the boxes fall to the ground and rotate so the monster and I can't move the bird, anyone knows what's the problem?
@tomorrowduong4914
@tomorrowduong4914 3 года назад
darn the best intuitive tutorial I've found. Packed with useful information!
@Unity3dCollege
@Unity3dCollege 3 года назад
Glad it was helpful!
@spoomie9694
@spoomie9694 3 года назад
Hi Jason, when I create the level 2(save as) and click on it, it is empty and there is nothing in the hierarchy. How do I fix this?
@LaTrefle
@LaTrefle 3 года назад
Lovely tutorial, watched every second of it thoroughly.
@hellyeah4785
@hellyeah4785 3 года назад
Hey can someone please help me at 29:57 like when his bird flaps my bird flickers on and off please help I just started today and have no idea what I should do to fix it thank you!
@sheepleslayer586
@sheepleslayer586 3 года назад
Wonder how many people skipped over this because of how long it is.. They're missing out big time! Subbed for sure. We are besties with testies now!
@thegoat5358
@thegoat5358 2 года назад
i know i am 2 years late but i get a NullReferenceException error at the line after the bool monsterareallldead and idk how to fix it bc i am new at this so if you see this can you help me ?
@aze7900
@aze7900 3 года назад
Hey when i do all the coding I've checked it multiple times the spelling is all right and there's no errors my bird dosen't seem to turn red then white. I am on visual studio community 2019 btw but on unity version 2020 does that make a difference
@TheGoldspring
@TheGoldspring 3 года назад
Did you forget to make a reference to SpriteRenderer? Meaning, do you have this line under Awake()? _spriteRenderer = GetComponent();
@yuuta6563
@yuuta6563 3 года назад
I have teh same problem. I've tried with Unity 2019 and 2020, and both did not work.
@ahtdejonge
@ahtdejonge 3 года назад
It does not matter which version of visual studio you are (2017 or 2019) as long it is setup correctly in unity he shows where to do it (I Believe). What I had is that I eighter missed him telling to add the Bird script to the Red Bird or he did not mentioned it all. I didn't bother to go back to check which it is. This might be the problem you have.
@yuuta6563
@yuuta6563 3 года назад
@@ahtdejonge He forgot to talk about adding the bird script and only mentions it during another step. That was indeed the issue (at least for me). I figured it out by reading some other people's comments shortly after I had the problem, but forgot to say it here.
@theseusRJ7
@theseusRJ7 3 года назад
for those who are having trouble with the script not working, dont worry, he just didnt mentioned how to link the scripts with the object, just drag the script to the component section
@ascoider
@ascoider 3 года назад
You should add the 1:25:17 moment: "Uh... beautiful"
@Maui_Fr
@Maui_Fr 2 года назад
How do I get it to actually change to level two after killing them all, could someone give me the timestamp I missed
@IGNACY-fp8zo
@IGNACY-fp8zo 3 года назад
The bird sets the three second timer every time it collides, meaning that sometimes when you pull back on it after it resets the first time it will "lag" and reset a second time mid-air. Does anyone know how to fix this?
@Yaybuttons898
@Yaybuttons898 3 года назад
Same is happening to me lol did you ever figure it out?
@IGNACY-fp8zo
@IGNACY-fp8zo 3 года назад
@@Yaybuttons898 I began the timer on “OnMouseUp” (when you launch the bird) instead of on every collision so that it only registers one reset instead of multiple
@Yaybuttons898
@Yaybuttons898 3 года назад
@@IGNACY-fp8zo ah ok, I figured my problem out, I had the coding in the wrong spot lol.
@PeterJohnson76
@PeterJohnson76 3 года назад
@@IGNACY-fp8zo Since making that change, it now causes my bird to reset mid air... I occasionally have a glitch whereby when i pull back on the bird, it dops off and I have to re start pulling back on the bird
@IGNACY-fp8zo
@IGNACY-fp8zo 3 года назад
@@PeterJohnson76 That’s really strange. Are you sure you have the timer in the proper spot? Play around with that. An important skill in programming is being able to troubleshoot like that.
@BMiBudz
@BMiBudz 3 года назад
are we opening the visual studio in blue or blue (extra contrast) ??? come on buddy you are leaving way too many steps out and its really frustrating and confusing :S
@jamesmoore2223
@jamesmoore2223 2 года назад
This is genuinely the best youtube tutorial ive ever watched (and i watch a lot of youtube!)
@jackhuang1828
@jackhuang1828 2 года назад
Terrible tutorial, went blind on the light theme Visual Studio. 0/10
@PsychoticSalamander
@PsychoticSalamander 3 года назад
did anyone else have a problem with the code for the bird not falling by default? i wrote the code and it is not stimulated but the bird still falls. help pls
@carfunkledflip1
@carfunkledflip1 3 года назад
did you capitalize the Rigidbody2D or the GetComponent?
@jackandrzej
@jackandrzej 2 года назад
The same happened to me and it falls. i have rechecked all the code multiple times.
@calmguitar8530
@calmguitar8530 2 года назад
@@jackandrzej Solution: Go to your red bird, under RigidBody2D change the Body Type to Kinematic. I know this is a little late, but I hope this helps!
@Mel103Ariz
@Mel103Ariz 2 года назад
I followed the script and at the part to make your bird red it doesnt do that and i also added the script as a component for the bird
@BMiBudz
@BMiBudz 3 года назад
i changed to global and it wont let me turn on the snapping thing still :S?, Never mind i missed the part where you said to click W my bad
@blenderup5984
@blenderup5984 3 года назад
If you are using vscode there will not be unity auto-completions no matter what u do
@BMiBudz
@BMiBudz 3 года назад
but how do you know if var will be short for vector2 or 3???? didnt explain that :S?????
@TheKarishi
@TheKarishi 3 года назад
Useful thing for the issue described around 1:19:25 - Another way to make double-sure you don't accidentally click out of the thing you've selected in the inspector is to lock it! At the top right, to the right of the tab with the word "Inspector" on it, there's a little padlock icon. Clicking that will lock the inspector into looking at the thing(s) you have selected. This can have its own mild issue where you have to remember to UNlock it afterward, but it's still useful to know about, especially if you're doing the kind of thing described here where you're selecting several elements in the scene by hand. That's a situation where being sure you won't lose those selections to a misclick is totally worth it.
@noanyobiseniss7462
@noanyobiseniss7462 3 года назад
Seems like this unity engine needs a method for say 2dObjectDrag to grab the x.y coordinates and apply them to an object. That drag method is clunky and not conclusive to a new user learning experience. Great job BTW, you have far more patience than I will ever have. ;)
@alextrickey4751
@alextrickey4751 2 года назад
At 29:20 when I dragged them into the hierarchy, it didn’t open any file
@Daniel-kp1lz
@Daniel-kp1lz 3 года назад
I have my code worked out just like his, but for some reason the disappearing and respawning elements aren't working. My bird will hit the monster, boxes, ground, etc, but it won't trigger the disappear and reappear functions. I've tried everything, including reloading both unity, visual studio and even restarting my computer. I have no idea what's wrong or where to even proceed to attempt to fix it, and the console isn't flagging anything either. Below is my code for my bird, but the monster isn't dissapearing when hit either. using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class Bird : MonoBehaviour { [SerializeField] float _launchForce = 500; Vector2 _startPosition; Rigidbody2D _rigidbody2D; SpriteRenderer _spriteRenderer; void Awake() { _rigidbody2D = GetComponent(); _spriteRenderer = GetComponent(); } //this was the issue I had with Remove in the RPG, Start_position //Generated this with the little lightbulb, and "generate field" //This is needed since the field is never referenced. //we didn't need the private field, so i removed it. void Start() { _startPosition = _rigidbody2D.position; _rigidbody2D.isKinematic = true; } void OnMouseDown() { _spriteRenderer.color = Color.red; } void OnMouseUp() { Vector2 currentPosition = _rigidbody2D.position; Vector2 direction = _startPosition - currentPosition; direction.Normalize(); _rigidbody2D.isKinematic = false; _rigidbody2D.AddForce(direction * _launchForce); _spriteRenderer.color = Color.white; } void OnMouseDrag() { Vector3 mousePosition = Camera.main.ScreenToWorldPoint(Input.mousePosition); transform.position = new Vector3(mousePosition.x,mousePosition.y, transform.position.z); } void Update() { } void OnCollisionEnter2d(Collision2D collision) { StartCoroutine(ResetAfterDelay()); } IEnumerator ResetAfterDelay() { yield return new WaitForSeconds(3); _rigidbody2D.position = _startPosition; _rigidbody2D.isKinematic = true; _rigidbody2D.velocity = Vector2.zero; } }
@Daniel-kp1lz
@Daniel-kp1lz 3 года назад
The solution is that I needed to install the Unity autocomplete, because for some reason despite typing it out word-for-word, I believe unity wasn't accounting for this as a function, and when I had it autocomplete, it worked.
@ret3p395
@ret3p395 3 года назад
Please help im stuck at red it does not become red and i haver the same code he written
@hardtofindaunamehere
@hardtofindaunamehere 3 года назад
You Sir are a legend!! this is by far the best tutorial on youtube I saw. your detailed and clear instructions are so easy to follow, even at 1.5x :) Thank you!!
@misterdaz2694
@misterdaz2694 3 года назад
Apart from a couple of minor things others have picked up on, Jason's video tutorial is the best I have watched here at RU-vid so far. He has a very confident, neat and well explained approach to his teaching. His videos appear to be well planned out beforehand and he doesn't run into problems and start scratching his head halfway through wondering what he has done wrong like others I have seen. Very slick, very professional approach, Great stuff Jason, I shall be watching more! Thanks very much.
@calmguitar8530
@calmguitar8530 2 года назад
If you messed up this might help - Add the bird script to the “Red Bird” sprite. Make sure Simulated is checked in the Red Bird sprite. If your bird falls into the ground at the start try switching the Body Type to Kinematic in RigidBody2D
@stormterry8811
@stormterry8811 2 года назад
Thank you! No one else's explanation made sense to me.
@Darkknife01
@Darkknife01 3 года назад
Anyone else read the thumbnail as make 2020 a Game for Beginners
@streak3315
@streak3315 3 года назад
At 30:11 my bird just disappears and reappears instead of flapping its wings, the rest has been clear so far, thank you!
@BenBerke
@BenBerke 3 года назад
Can you help? Why using System.Collections; using System.Collections.Generic; using UnityEngine; public class BeekRedOpen1 : MonoBehaviour { // Start is called before the first frame update void Start() { GetComponent().isKinematic = true; } // Update is called once per frame void Update() { } } is not working?
@Unity3dCollege
@Unity3dCollege 3 года назад
File name must match class name. Im guessing they're different?
@nirmitasfamilyvlogs7441
@nirmitasfamilyvlogs7441 3 года назад
Hello! Everything works fine, but for me, when I added the background into the scene it just overlays the bird. The bird wouldnt show as the background was covering it. Is there any way that we can make the bird go on top of the background?
@Alkhalidi44
@Alkhalidi44 2 года назад
same problem I had, here is how I solved it : On the right side of the screen when you click on the bird, there is a text that says "Sprite Renderer" that has next to it a check box. in the sprite renderer box there is a list called "Additional Settings". under that list is 2 things you can modify, one is "Sorting Layer" and the other is "Order in Layer" . the one that you want is "Order in Layer", in the box next to that make sure (while the bird is the chosen object) that the value is set to "1" and let the background's "Order in layer" value be set to 0. that way you can stop the bird from being overlaid by the background. hope this helps .
@YarikASMRPOMIRCHIY
@YarikASMRPOMIRCHIY 3 года назад
I would appreciate if you would create some more intermediate/advanced game tutorial, since there are so many tutorials for beginners and twice less for more advanced guys (:
@shazadaGamerYt
@shazadaGamerYt 3 года назад
Best TUTORIAL FOR BEGINNERS.. 💓💓😘
@-peacegeese-9641
@-peacegeese-9641 3 года назад
Everything else worked fine until I placed the background because the background was covering the bird and I couldn’t see it and I tried everything even making a whole new project so I don’t know can someone help me
@gougou77332
@gougou77332 3 года назад
Continue the video, it will be explained a little bit later. Keep going! it is related to layers that you can set, like Gimp or many drawing software.
@Meithighs
@Meithighs 3 года назад
omg this part at like 40 minutes with the generate project files fixed my hatred for visual studio. thank you
@parkourgenerations7479
@parkourgenerations7479 3 года назад
This is a dumb question but at 29:00- it won’t allow me to highlight the two images at the same time what should I do
@aeonsleo2
@aeonsleo2 3 года назад
The Visual Studio code has no effect in Unity. The Bird file is updated in Unity (same as in VS) but no effect on play with mouse down.
@aeonsleo2
@aeonsleo2 3 года назад
Oh! You never showed that you attached the script to the bird object. Now it works.
Далее
Why Solo Developers Should Use Unreal
9:51
Просмотров 386 тыс.
Почему?
00:22
Просмотров 238 тыс.
How to Start Making Games with No Experience
10:55
Просмотров 67 тыс.
AI Plays Minecraft Forever (and dies)
23:22
Просмотров 345 тыс.
Using my Real Bike to control my Racing Game
7:19
Просмотров 87 тыс.
Dear Game Developers, Stop Messing This Up!
22:19
Просмотров 715 тыс.
I Made The Ultimate Cheating Device
9:39
Просмотров 1 млн
Why I’m switching from Unity to Unreal Engine
9:02
If You Can't Make Games After This Video, Give Up
4:37