WINNING LEVELS - How to make a Video Game in Unity (E09)

Sdílet
Vložit
  • čas přidán 25. 03. 2017
  • Let's make a way to reach new levels!
    ● Download the Project Files: devassets.com/assets/how-to-ma...
    ❤️ Donate: www.paypal.com/donate/?hosted...
    ····················································································
    This video is part of a mini-series on making your first game in Unity.
    ····················································································
    ► Join Discord: / discord
    ♥ Subscribe: bit.ly/1kMekJV
    ● Website: brackeys.com/
    ● Facebook: / brackeys
    ● Twitter: / brackeystweet
    ········································­­·······································­·­····
    Edited by the lovely Sofibab.
    ········································­­·······································­·­····
    ► All content by Brackeys is 100% free. I believe that education should be available for everyone. Any support is truly appreciated so I can keep on making the content free of charge.
    ········································­­·······································­·­····
    ♪ Baby Plays Electro Games
    teknoaxe.com/cgi-bin/link_code...

Komentáře • 3,2K

  • @mosspeltmintleaves
    @mosspeltmintleaves Před 6 lety +2105

    If your icon is not showing, there is a button at the top of the scene view called Gizmos and you can click on it to open a menu. At the top of the menu there will be an option called 3D Icons with a slider next to it. Pull the slider all the way to the right and then your Icon should show up.

    • @ItsNinjahTV
      @ItsNinjahTV Před 5 lety +65

      Literally been looking everywhere for an answer. Thanks bro. Literally simplest solution.

    • @mohammedelhamouti2971
      @mohammedelhamouti2971 Před 5 lety +10

      Thank u brother.

    • @marinomiskovic5072
      @marinomiskovic5072 Před 5 lety +11

      Thanks bro.

    • @FurryDanOriginal
      @FurryDanOriginal Před 5 lety +33

      What it does though is increasing the size of the icon and the distance from where it will not be transparent. So if you have a large enough distance from the icon, it will still disappear and some might find it annoying that the icon is so big. I'd prefer just unchecking the 3D Icons in this scenario in order to see the icon from any point in the scene.

    • @yebitz2373
      @yebitz2373 Před 5 lety +4

      Thanks. I was very confused because I didn’t try zooming in and thought it just didn’t appear

  • @lachiebell9656
    @lachiebell9656 Před 3 lety +585

    after 1 hour of stress and anger, i finally managed to add a fart sound effect when you hit an obstacle :)

    • @Lav_A
      @Lav_A Před 3 lety +8

      howd you do it ?

    • @lachiebell9656
      @lachiebell9656 Před 3 lety +56

      ​@@Lav_A in the player asset, i added the "audio source" component and put the fart noise in to it, then in the "game manager" script, type this in to the start function - GetComponent().enabled = false;
      then in function i put GetComponent().enabled = true;
      above all the other commands within function. Hope this helps :)

    • @QuotivationOfficial.
      @QuotivationOfficial. Před 3 lety +2

      hi im having an issue can you help it says Assets\Scripts\GameManager.cs(4,14): error CS0101: The namespace '' already contains a definition for 'GameManager'

    • @lachiebell9656
      @lachiebell9656 Před 3 lety

      @@QuotivationOfficial. i am not sure if u like i can call on discord and have a look?

    • @QuotivationOfficial.
      @QuotivationOfficial. Před 3 lety

      mick laz can you text me in discord?

  • @MiloWildfire
    @MiloWildfire Před 3 lety +389

    "Are ye winning son?"
    "Not yet"

    • @edulee1861
      @edulee1861 Před 3 lety +43

      Are ya winning son? No father, i create the winning.

    • @1977shorts
      @1977shorts Před 3 lety +6

      Are ya winning son? No father, i create my very first game, i recorded the whole process (about learning this tut) and uploaded to this channel, you can check it out

    • @EmperorStick
      @EmperorStick Před 3 lety +5

      @@edulee1861 are ya winning son? No papa, im watching a tutorial to create the winning

    • @sirspongadoodle
      @sirspongadoodle Před 2 lety

      @@1977shorts no self promo unless you homo.

  • @Dluxe
    @Dluxe Před 3 lety +274

    5 million views on the start of the series
    700k on the end of it....
    don't give up! you can do it! take a few minutes off and come back. believe me its worth it! :D

    • @kristianthaler6525
      @kristianthaler6525 Před 3 lety +9

      This comment needs to be on the first video lol

    • @marcussyyy
      @marcussyyy Před 3 lety +1

      i had to take day inbetween breaks for this whole series because of the anger of me mispelling a lower case word and not knowing what the problem was with the code for hours on end ;-;

    • @ibnbattuta7031
      @ibnbattuta7031 Před 2 lety

      @@marcussyyy always look at the console!
      It gives you the exact file and exact position of the error, really helps

    • @potitete6531
      @potitete6531 Před 2 lety +1

      its just everybody starting over again and again like me..

  • @oddguyamaar9191
    @oddguyamaar9191 Před 5 lety +294

    "► All content by Brackeys is 100% free. I believe that education should be available for everyone. Any support is truly appreciated so I can keep on making the content free of charge."
    Thank you....!!!

    • @manhaoinh9929
      @manhaoinh9929 Před 4 lety +2

      When I make some money from my games, I swear I will come back to this channel and become a patreon!

  • @manantank
    @manantank Před 5 lety +608

    I feel like i'm committing a crime by watching Brakeys videos for free.
    Gotta become a patron now i guess.

  • @coincidenta7
    @coincidenta7 Před 3 lety +596

    im literally getting addicted to playing my own game

    • @lordcatington8188
      @lordcatington8188 Před 3 lety +50

      Well then you're on the right track!

    • @maggiethegamer1271
      @maggiethegamer1271 Před 3 lety +32

      Cool idea, making an addictive game and then playing it forever. Now some procedural generation and you got an internet phenomenon.

    • @lordcatington8188
      @lordcatington8188 Před 3 lety +46

      @@maggiethegamer1271 and make sure to throw in as many micro transactions as possible

    • @arnavgupta8376
      @arnavgupta8376 Před 3 lety +1

      Same is happening to me

    • @Adinkya
      @Adinkya Před 3 lety +2

      Can u help me I did everything correctly but when I run it and complete level 1 it plays the animation over and over again and dosnt switch the level

  • @willpetillo1189
    @willpetillo1189 Před 3 lety +85

    Time-stamps for reference:
    0:10: Adding an invisible end-of-level trigger
    1:10: Adding an icon to an object (visible in Editor only)
    1:23: Creating an EndTrigger script with the OnTriggerEnter method
    2:26: Creating a CompleteLevel method in the GameManager script
    3:27: Display a “Level Complete” panel on completing the level
    5:40: Creating an animation
    7:05: Recording keyframes in an animation
    8:17: Adding events to animation clips and creating a LevelComplete script
    9:20: Transitioning to the next scene by getting its build index

    • @davidthompson3367
      @davidthompson3367 Před 2 lety

      Than bro

    • @davidthompson3367
      @davidthompson3367 Před 2 lety +2

      Tysm * auto correct

    • @JellyGang680
      @JellyGang680 Před 10 měsíci

      Can someone help me? After I complete my level, only the words fade in, but the white background doesn't 8:12

    • @darkduet8458
      @darkduet8458 Před 9 měsíci

      @@JellyGang680 You must have missed something in the video, even the slightest detail matters

    • @axoomi1200
      @axoomi1200 Před 7 měsíci +1

      You are a legend I find you in every episode of the tutorial thanks from all of us

  • @ethanperron4834
    @ethanperron4834 Před 7 lety +464

    Finally a unity tutorial that doesn't make me bored, explains in depth, but doesn't ramble! THANK YOI

    • @jorgekorn52
      @jorgekorn52 Před 5 lety +3

      I am thankfull for all these free tutorial videos.
      I have followed every step of every video until I got stock as soon as I Dragged and placed the GameManager into the END's script box named GameManager as well.
      No error is shown on my C# visual studio scripts, no error is shown on Unity console.
      As soon as I hit play, the game starts with "the Level Won!!" message on the console
      But since then. I cannot move the player, it does not move sideways at all.
      It was working perfectly before dragging the GameManager into END's script's box named GameManager
      Please tell me what went wrong

    • @RqktGames
      @RqktGames Před 5 lety +4

      @@jorgekorn52 I'm probably a bit late, but remember! If anything else is colliding with the box, it'll display the message and remove your controls.

    • @harshii_tan
      @harshii_tan Před 4 lety +1

      Nb@@BeemoR6 k

    • @muffinmendy7327
      @muffinmendy7327 Před 3 lety

      Agree

    • @not_herobrine3752
      @not_herobrine3752 Před 3 lety

      try Miziziz. You wont be dissapointed in the "doesnt ramble" section.

  • @necronomnoms9563
    @necronomnoms9563 Před 4 lety +430

    if anyone has any trouble getting the end trigger to enable, make sure the "o" in "OnTriggerEnter" is capitalized and "is trigger" is checked
    Edit: to all who said thanks, youre welcome😊

    • @BenJaded
      @BenJaded Před 4 lety +1

      oh, did he miss that or is that something that only happens in new versions of Unity?

    • @necronomnoms9563
      @necronomnoms9563 Před 4 lety +2

      @@BenJaded ah, someone else had the same problem as me on a forum, trying to do do an "on trigger enter" command

    • @BenJaded
      @BenJaded Před 4 lety +1

      @Maniac I don't know too much about it, but maybe check that the method in the GameManager is 'CompleteLevel' and not any variation, also reference it in the inspector window maybe?

    • @noobplay3922
      @noobplay3922 Před 4 lety +1

      Thank you so much, stuck on this for like half an hour.

    • @Strykiiid987
      @Strykiiid987 Před 4 lety +8

      Still mad stuck on this. I've spent an hour checking every letter and capitalisation errors. Visual studio is giving the void OnTriggerEnter piece of code an error where I'm referencing the gamemanager and complete level. Saying only assignment, call, increment, decrement and new object expressions can be used as a statement. No clue what this means

  • @MrGhoulGamer
    @MrGhoulGamer Před 4 lety +16

    As someone who took this up as a hobby to destract myself with mourning i can say i am so happy your lessions have given me so much insight to a world of fun, i love being creative and i must say your lessons really do make a long day seem much brighter and so much shorter when you have a nice puzzle to get done like game creation youve earned a subscribe and a bell tick
    thankyou

  • @furiousfear772
    @furiousfear772 Před 3 lety

    Brackets 3 years later and I am still watching your tutorials. I hope you are happy doing what ever you are doing now.

  • @GameOver7853
    @GameOver7853 Před 7 lety +290

    I don't know why but his videos are so satisfying to watch even though I'm not following the series

    • @luxaarts
      @luxaarts Před 6 lety

      I did the same thing but when my player passes through the finish does not come out anything in the console I turned on the trigger .. HELP PLS !!!

    • @rajjaiswal1606
      @rajjaiswal1606 Před 6 lety

      True

    • @Cam-uf9ke
      @Cam-uf9ke Před 5 lety

      same with me

    • @turnoffthetv7709
      @turnoffthetv7709 Před 5 lety

      I know.

    • @digiit
      @digiit Před 5 lety +1

      There is a thing called ASMR.. Lol

  • @xuraith
    @xuraith Před 7 lety +30

    I like that your videos are quick, clean, (both audio/visual) and to the point without all the silliness or just plain bad editing. yes indeed, some slick tutorials that cover a variety of genres and or mechanics sounds like a great idea

  • @layunaina6234
    @layunaina6234 Před 4 lety +3

    Thank you for keeping your tutorials concise, music free and for using proper English

  • @thomasedwardking7286
    @thomasedwardking7286 Před rokem +2

    This is such a cool and accessible set of videos. If you're a beginner, Unity ain't for the faint-hearted. But you've made something that is probably childsplay for yourself so easy to understand for those of us just getting started. I'm definitely subscribing and getting others onto subscribing to your channel.

  • @AlucardC99
    @AlucardC99 Před 7 lety +444

    I've finally accomplished something in my life thanks to you brother... thanks a lot you've introduced me to a whole new world that I'm gonna explore!

  • @cosmovandam
    @cosmovandam Před 3 lety +6

    You gotta love it when you fix something and don't know how or why you did, but it just works

  • @hpenvy15
    @hpenvy15 Před 3 lety

    I really appreciate the paste of which you are presenting the material. Less crap and bs and more focus on what the title is all about, no waiting etc. Indeed, very nice sir! Also, I appreciate the video.

  • @jeetwinkles5792
    @jeetwinkles5792 Před 3 lety +60

    AFTER NEARLY 5 HOURS OF ME BEING AN IDIOT I FINISHED EVERYTHING FOR THIS VIDEO AAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHH

    • @mp3audio491
      @mp3audio491 Před 3 lety

      Are you still working in unity ?

    • @Divility
      @Divility Před 3 lety

      @@mp3audio491 hes prob not

    • @mp3audio491
      @mp3audio491 Před 3 lety

      @@Divility I wonder how much progress did he make in 7 months

    • @Divility
      @Divility Před 3 lety +1

      @@mp3audio491 not sure but if he kept at it, hes probably very good at scripting by now

    • @jazylboukerdenna2312
      @jazylboukerdenna2312 Před 2 lety

      gg

  • @Phoenix-0455
    @Phoenix-0455 Před 4 lety +140

    "Don't select the anime-door..." - Brackeys 2017

    • @maxyboyo
      @maxyboyo Před 4 lety +8

      Select the furry door instead OwO

    • @evzyl8409
      @evzyl8409 Před 3 lety

      @@maxyboyo saaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

    • @jindrasyky2354
      @jindrasyky2354 Před 3 lety

      ah yes, I should have known sooner I guess

    • @Phoenix-0455
      @Phoenix-0455 Před 3 lety +4

      @@maxyboyo uwu

    • @ritsh_
      @ritsh_ Před 2 lety

      W8 wat

  • @shm1st
    @shm1st Před 4 lety +6

    For all those with an issue with the "Level Won" not popping on the console and when you are sure everything is typed as Brackeys said - just restart the Unity. It helped in my case.
    Thank you Brackeys for an awesome tutorial!!

  • @ethanfarlow7791
    @ethanfarlow7791 Před 3 lety +57

    If the "LoadNextLevel" doesnt show up in the functions, you accidentally created the animation in the wrong thing. Delete it in animation folder in the assets bar, click the "level complete" object, and then click "create" in the animation tab. I had this problem and noticed no one answered. I figured it out on my own and here you go people! :D

    • @saqlainwatto2695
      @saqlainwatto2695 Před 3 lety

      Next Level don't show after level complete anyone know about this

    • @aswathyn6999
      @aswathyn6999 Před 3 lety +2

      still not working

    • @Tutorial7a
      @Tutorial7a Před 3 lety +8

      The problem seems to be this: if you select your animation from the Project and click on the event marker, it won't work. If you select the GameObject that has the animation as a component and then click on the event, it will show up. This seems rather unintuitive, but I was able to replicate both the problem and the solution, so this seems to be it. :)

    • @tintintin26
      @tintintin26 Před 3 lety

      @@Tutorial7a I have the same problem as Ethan and I didint understood ur explanation, can u help me please :(

    • @Tutorial7a
      @Tutorial7a Před 3 lety

      @@tintintin26 it’s a matter of where you select it from. As I recall (might be mistaken) you have to select the GameObject, not the thing in the files.

  • @elijahmock
    @elijahmock Před rokem +40

    If the record button is grayed out in the Animation pane, make sure you have the LevelComplete component selected in the left panel.

  • @tariqalkhawaja1285
    @tariqalkhawaja1285 Před 4 lety +9

    I would like to thank you for this series, this is an amazing introduction to Unity, keep up the good work

    • @JellyGang680
      @JellyGang680 Před 10 měsíci

      Can u help me? After I complete my level, only the words fade in, but the white background doesn't 8:12

  • @david8j796
    @david8j796 Před 4 lety +393

    the 91 dislikes are Epic Games employees

    • @needful_meds9572
      @needful_meds9572 Před 4 lety +5

      SAME!!!!

    • @rowanswatling3766
      @rowanswatling3766 Před 4 lety +34

      needful_meds how does that make any sense in this context lol

    • @iteratedofficial
      @iteratedofficial Před 4 lety +2

      @@rowanswatling3766 nvm

    • @Hietakissa
      @Hietakissa Před 4 lety +26

      @@rowanswatling3766 Unreal Engine is developed by Epic Games, and Unity is a competitor of UE

    • @rowanswatling3766
      @rowanswatling3766 Před 4 lety +13

      Costed yes I’m talking about the guy who said SAME!!!

  • @matthias0054
    @matthias0054 Před 4 lety

    I may still be bad at coding, but after watching those videos I can finally stop dragging assets in and start writing my own code. After learning very simple languages such as Python, I was scared that C# would be too hard to me. Well, in about 15 minutes a day watching these tutorials, I learned all the useful code to make a simple and fun game. Thanks a lot for helping me and other people so much!

  • @Srcsqwrn
    @Srcsqwrn Před 4 lety +2

    At the moment I'm just watching this series of videos to see if this is what I want to do to build a game.
    I think at the moment, I've decided thast this is possible for me to do,a nd the coding isn't as daunting as I initially thought.
    My end goal is to build a stealthy-ish FPS, where you search for items and clues to things [I don't want to get into too much detail].
    Watching this series has taught me about movement, and scenes, and values.
    I'm going to keep watching the series for now, and when I'm satisfied that this is going in a direction to begin on something like this, I'll restart the series from scratch and begin to follow along. This way I can learn to code. Right now I think I'm just wrapping my head around the UI and thinking about how to organize everything.
    Thank you for this resource. I wish most tutorials I find on YT would be as clean and easy to follow as yours. [This has been a stopping point for me for years, since the tutorials have usually been poor quality, and very complicated. They assume you know things about programming most of the time, even if it's a beginner course.]

  • @kal0rd597
    @kal0rd597 Před 5 lety +3

    I can always trust you... THANK YOU! I am so grateful, your tutorials are 100% amazing!

  • @KayoticFoXx
    @KayoticFoXx Před 5 lety +3

    I thought it was impossible to learn how to start learning game development but you made it easy and understandable thank you

  • @heavenly6109
    @heavenly6109 Před 2 lety +11

    to anyone who's having trouble with the end trigger and already has the "Is Trigger" checked , i had a second copy of the EndTrigger script on the assets folder and another in the scripts folder, just delete the one in the scripts folder and then correct and transfer the other one back to the scripts folder. this worked for me because i put the script way ahead of time and to be honest idk why it messed it up but it did. hope this helps

    • @praayush2007
      @praayush2007 Před rokem +1

      Thank you very much. I was having the same issue and it worked for me.

    • @dingo_walters
      @dingo_walters Před 10 měsíci

      THANK YOU SM

  • @skewminds3756
    @skewminds3756 Před 2 lety +33

    For those using the 2020 version, you need to manually click the recording button after selecting an object in the animation panel for recording the animation.

    • @swagone9060
      @swagone9060 Před 2 lety +1

      I cant figure out the animator whenever i create an animation for the panel everything works fine but when i want to animate the text on the panel unity want me to create a new animation

    • @nicholascarey243
      @nicholascarey243 Před 2 lety +2

      Thank youuuuu, I was going crazy

    • @skewminds3756
      @skewminds3756 Před 2 lety +1

      @@nicholascarey243 ur welcome! I remember me also going crazy about this before I realized I need to click it manually.

    • @intelblox7354
      @intelblox7354 Před rokem +2

      @@skewminds3756 hey my animation works fine in the animator but in the game the animation doesnt run at all.. any help?

    • @skewminds3756
      @skewminds3756 Před rokem +1

      @@intelblox7354 umm I don't know and its a long time since I last used unity so I dont even remember. Sorry.

  • @nikolasfiler5241
    @nikolasfiler5241 Před 5 lety +4

    These videos are really awesome. Thanks for all your hard work.

  • @Alex-lt5ho
    @Alex-lt5ho Před 3 lety +44

    I have him at half speed and this man types and talks like it's at normal. I can't keep up!

    • @rexdoom3848
      @rexdoom3848 Před 3 lety +1

      personally I put him at 1.75 speed

    • @sirspongadoodle
      @sirspongadoodle Před 2 lety

      @@rexdoom3848 its because he doesnt do the videos the best. he either is rambling or is doing it. very hard to figure out when.

    • @hisyamhasbi8257
      @hisyamhasbi8257 Před 2 lety

      @@sirspongadoodle are we watching the same video bro?

    • @DecagerGames
      @DecagerGames Před 2 lety

      @Sucky ive been doing this 1 year and i still come back to this tutorial occasionally lmao

    • @muslimbashir7778
      @muslimbashir7778 Před 2 měsíci

      Same

  • @shakedangi1013
    @shakedangi1013 Před 3 lety

    Just wanna say congragulations to you, I've almost done watching the series, and I've learned so much from it. I knew a bit c# before entering the series but i always to program a game. The tutorials are well-explained and entertaining. Subscribed from the first video (:

  • @beldroxd4542
    @beldroxd4542 Před 5 lety

    I am having fun doing this bit the best part is seeing him having fun explaining it 💪

  • @anotherrandominternetperso4994

    "And the most fun part: Animation"
    Well yes, but actually NO!

    • @ghouldrago360
      @ghouldrago360 Před 3 lety +1

      Animation was headache for me it took me like 2 hours to get it working(because I accidentally added a event)

    • @dosui4609
      @dosui4609 Před 3 lety +1

      @@ghouldrago360 im sitting for 2 hours because first it only show 0.01 second and now i cant put complete in the animation

    • @dosui4609
      @dosui4609 Před 3 lety +1

      I did it !!😅

    • @anotherrandominternetperso4994
      @anotherrandominternetperso4994 Před 3 lety

      @@dosui4609 Wow, Congratulations!

    • @ilovecairns5181
      @ilovecairns5181 Před 3 lety

      I made my player bop up and down :)

  • @mhenchion6524
    @mhenchion6524 Před 3 lety +79

    I feel like this dude could beat eminem in a rap battle and have desingned a loser screen for eminem by the time it was over

  • @TheWizard991
    @TheWizard991 Před rokem

    I've made Jumpy Cube game with the help of Brackeys videos. Such a nice guy to share all his skills with us.

  • @aleksandarstojanovic8304

    Awesome tutorials by @Brackeys as always. Thanks !

  • @KarpKore.
    @KarpKore. Před 2 lety +7

    If you find you're getting error messages for no reason I recommend checking you don't have duplicate scripts if you've used folders along with checking your scripts are fine.
    I can't remember why it is but sometimes when moving things into folders and then saving the script in makes the save in it's original place (outside the folder), making a duplicate.
    Just close the script editor, take the script/s out of the folder and then put them back in. Don't know if it will help but I saw a lot of people with similar error messages as me and it totally fixed all the problems I had.

  • @theearthburner6159
    @theearthburner6159 Před 6 lety +6

    you are the best teacher u work like a pro software engineer

  • @Xardas_
    @Xardas_ Před 3 lety

    The best Unity tutorial that i've ever seen until now

  • @asymmetricfuzion970
    @asymmetricfuzion970 Před 3 lety +9

    Dude it is no wonder you have over 1m subs and have so many views on this series. As a qualified lecturer (I teach and university and college level) you have a very solid way of explaining things in just enough detail that we get a comprehensive overview of what we're doing but not going overboard with detail so it's inaccessible. Videos are also a great length and the stuff you've chosen to include in this series is really strong.
    Thank you for your contributions to teaching the next generation of unity game creators!

    • @JellyGang680
      @JellyGang680 Před 10 měsíci

      Can u help me? After I complete my level, only the words fade in, but the white background doesn't 8:12

  • @easyrider788
    @easyrider788 Před 5 lety +5

    Always be sure to check your code. I was about to drive myself nuts trying to get LoadNextLevel (9:00) to show up in the functions menu. Little did I know, I added a semicolon afterwards.. Always double check! :)

  • @mazharultalukdar7348
    @mazharultalukdar7348 Před 5 lety +5

    You are literally my game development professor 😁

  • @bardhselimi8961
    @bardhselimi8961 Před 3 lety +2

    LEGEND man LEGEND, You helped and motivated me and so many others out for free!!

  • @sowanoo9149
    @sowanoo9149 Před 4 lety +3

    Realize how the number of people from part 1 till 9 is gradually decreasing?
    Thats the number of people who gave up!
    If you are here then congrats! Your dedication is a hard one to break!
    Anyways good luck in your career!

    • @stahliboi6249
      @stahliboi6249 Před 4 lety

      So far its been 30% following this guide and 70% figuring out how to fix errors haha. Currently scratching my head as to qwhy backley gets animations automatically and i don't xD

  • @forexalised9053
    @forexalised9053 Před 6 lety +16

    For those with the error: "UnassignedReferenceException: The variable completeLevelUI of gameManager has not been assigned"
    Click on your GameManager object on the object list at the left of unity, notice in the inspector that under the Game Manager script, there is now a Complete Level UI section.
    Click and drag your Level Complete panel from the list on the left, onto this field. It will now work.
    I kept looking at my completeLevelUI variable in the code and kept saying "what the hell is wrong, the code is exact"... it wasn't the code, it was a reference on the object itself to the UI panel lol.

  • @bakkakun9326
    @bakkakun9326 Před 4 lety +10

    i need to rewatch the video 3 times to truly understand but i will not give up xD

  • @PabloFedericoRuizDiazRios

    Excellent, so far is my first project on Unity3D and is awesome! thanks a lot

  • @OW_Archive
    @OW_Archive Před 3 lety

    Great Series! Thanks so much for making this. I've had a few hiccups but overall I feel like I learned how to make a game in a day. I got to this point by the end of the day and had to stop once my code started to give me too many errors and I need to sleep.
    The videos get much faster as they progress though. I can tell you're using shortcut keys to navigate sometimes. The only frustrating part is having to rewind to find certain parts of code and it only be displayed for a millisecond lol.

  • @chris_gamedev
    @chris_gamedev Před 7 lety +118

    This is a nice tutorial series, but it doesn't hurt to breath between the words, good thing you didn't faint :)

    • @ProgrammerSheep
      @ProgrammerSheep Před 6 lety +13

      Dude, he just edits the videos like crazy. That's why he is so fast and never really messes up.

    • @Bof992
      @Bof992 Před 3 lety +5

      Yeah, its the only con i think.

    • @beyondme9369
      @beyondme9369 Před 3 lety +3

      Yes..but I think he speaking fast is one of the reasons of why the videos are relatively short..and short videos attract more people..i am saying because i am one of them..though it makes understanding a little tough..

    • @clyded8404
      @clyded8404 Před 3 lety +2

      @@beyondme9369 I agree with you I dont like slow tutorials because when I get like to the next step I forget what the previous step is because it was slow

    • @beyondme9369
      @beyondme9369 Před 3 lety

      @@clyded8404 or when i want to rewatch a video because i need to brush up the topic once more..I am repelled by long videos..

  • @bleuground
    @bleuground Před 7 lety +16

    thank god my phone notified me... nice tutorial!

  • @abusedchimpyt8367
    @abusedchimpyt8367 Před 3 lety

    Honestly the best tutorials i've seen

  • @atm0t5
    @atm0t5 Před 2 lety

    Thank you so much, this is the best tutorial I have seen so far.

  • @haktic8074
    @haktic8074 Před 7 lety +4

    Just a hint, you can use rich text too, so you can use bold text

    • @Brackeys
      @Brackeys  Před 7 lety +5

      That's very true! But using rich text instead of swapping out fonts sometimes doesn't look as good because Unity is just distorting the regular version - Still a good trick! :)

    • @haktic8074
      @haktic8074 Před 7 lety +1

      Ah yeah, forgot that about Roboto! Great tutorials!

  • @perouzzman5742
    @perouzzman5742 Před rokem +4

    If you have a problem with the animation playing immediately and not only playing at the trigger, on the animation window at the bottom left Add Property > LevelComplete > Is Active and then make sure too check the box and try again it should be working now.

  • @ericabutts2906
    @ericabutts2906 Před 3 lety

    I'm definitely becoming a patron because of how easily I learned this much material. Wow

    • @tudorradu5848
      @tudorradu5848 Před 3 lety

      I have a problem in which if I trigger the "is trigger" in the Box Collider, I automatically get the Level Complete panel. Can you help me?

    • @ericabutts2906
      @ericabutts2906 Před 3 lety

      Tudor Radu the Level Complete object should be unchecked, so its invisible. The finish line “END” box collider should be checked as “is Trigger”. END should have a script called EndTrigger. Inside EndTrigger declare a GameObject gameManager variable, and create function void OnTriggerEnter() { gameManager.CompleteLevel() }. Don’t forget to drag the GameManager object into this slot. Inside GameManagers script, there should be a function called CompleteLevel { completeLevelUI.SetActive(true) } where completeLevelUI is a GameObject variable. Drag in your Level Complete UI into this slot. NOW WHEN YOUR CUBE TOUCHES THE END FINISHLINE, SetActive will make the UI visible!!!!!!!

  • @yuukikobayashi6859
    @yuukikobayashi6859 Před 4 lety

    Really Love your series
    Thank you very much

  • @omarramos4063
    @omarramos4063 Před 3 lety +4

    If you are having trouble getting the end trigger to trigger, I tagged my end object as "Finish" and then went to my Player Collision code and made the following if statement [if (collisionInfo.collider.tag == "Finish") { FindObjectOfType().CompleteLevel(); } ] and it worked

  • @fml4204
    @fml4204 Před 3 lety +24

    If your complete level animation is continuously playing, untick the Loop Time box in the inspector.

    • @brainjuice2144
      @brainjuice2144 Před rokem

      Thx

    • @user-lz2qb5fh6o
      @user-lz2qb5fh6o Před rokem

      @All For Magic | Magic Tricks Revealed Culling mode - Cull Completely

    • @zeroskyri
      @zeroskyri Před 11 měsíci

      @@user-lz2qb5fh6o That didnt work on me

    • @jylppy244
      @jylppy244 Před 11 měsíci +1

      @@TheOfficialGoofyAhhDog Find the LeveleComplete animation clip found in project window and select it. Then you can find the Loop Time tick in inspector window

    • @JellyGang680
      @JellyGang680 Před 10 měsíci

      Can someone help me, after I complete my level, only the words fades in but the white background doesn't 8:12

  • @janbrezik5816
    @janbrezik5816 Před 2 lety

    Thank you for this series....its really well made!!! I hope you will return to this channel later. I wish you luck at anything you plan to do now when you have the time to do something else then youtube.

  • @ajtheallmighty
    @ajtheallmighty Před 4 lety

    3 years later information is still good 👌 and comments are also helpful

  • @skewminds3756
    @skewminds3756 Před 2 lety +3

    I have turned on the notifications in hope that, just in case, Brackeys upload a new video, I shall be notified of it🥺

  • @thiccnugger6820
    @thiccnugger6820 Před 3 lety +12

    Hello, i've been having an issue, I have done the same things as him, but when I complete the level the animation appears and it goes to the next level, it immediatly plays the animation again and goes to the next level and keeps going, im using the version 2019.4.8, any solutions?
    Edit: I fixed it, I forgot to disable the animation on all the levels

    • @timmylol6
      @timmylol6 Před 3 lety +2

      Thanks! I disabled the animation of 'LevelComplete', together with the components 'level' and 'complete'. Then I enabled the animation for 'level' and 'complete' and it worked:)

    • @jovem3767
      @jovem3767 Před 3 lety

      Thanks 🙏. You are breathtaking
      edit. I forgot too disable the animation in Scene02 and I wasnt fiding the error.

    • @mimic25
      @mimic25 Před rokem

      Hi, I also encountered the same problem, I would like to ask how to solve it, can you provide detailed operation, I can't find how to operate, thank you very much.😢🙏2021.3.12 ver.
      -EDIT: OMG, I just turned off the END trigger of LEVEL02 and then turned it on again, for some reason it suddenly became normal!😳

  • @CSBAjay
    @CSBAjay Před 3 lety

    wow so much content in 10min video. superb

  • @quiettuber4522
    @quiettuber4522 Před 2 lety

    i added 5f every second after we reach 200f in distance and proud
    haha. this course really helped me.

  • @mostafahesham8211
    @mostafahesham8211 Před 3 lety +8

    For anyone having trouble with the animation/transition between scenes not working. Open the animator and delete the rectangle with the name of the file that you put your animation in (that the entry rectangle points to). Make sure it looks exactly like the at 6:38 in the video.

    • @isdagglp
      @isdagglp Před 2 lety

      Miracle man

    • @rosanslomp2932
      @rosanslomp2932 Před rokem

      thanks, I was having this problem xD

    • @JellyGang680
      @JellyGang680 Před 10 měsíci

      Can u help me, after I complete my level, only the words fades in but the white background doesn't 8:12

  • @guidc
    @guidc Před 6 lety +24

    I have a problem. When I select an icon for the End object it only appears if I zoom in really close, which is annoying cause I want to see it from far away when editing the level. Anyone knows how to solve this?

    • @mosspeltmintleaves
      @mosspeltmintleaves Před 6 lety +46

      If you still want to know:
      There is a button at the top of the scene view called Gizmos and you can click on it to open a menu. At the top of the menu there will be an option called 3D Icons with a slider next to it. Pull the slider all the way to the right and then your Icon should show up.

    • @mrgumshoe1899
      @mrgumshoe1899 Před 6 lety +3

      @mosspeltmintleaves Not all heroes wear capes! Thank you :)

    • @ceduric4425
      @ceduric4425 Před 5 lety +2

      i would not be suprised if you wear a big red cape, Thank you

    • @mosspeltmintleaves
      @mosspeltmintleaves Před 5 lety +2

      You are all welcome! Glad I could help :)

    • @yellowcyborg4729
      @yellowcyborg4729 Před 5 lety +1

      Thanks so much! Was looking for this

  • @andoeffects
    @andoeffects Před 4 lety

    Fantastic tutorials,Thank you.

  • @vinaybhatt1335
    @vinaybhatt1335 Před 3 lety

    Bro I littreally love u thanks very much for makin these tutorials

  • @itzbasgamez689
    @itzbasgamez689 Před 4 lety +5

    can someone help me! i did everyting right but when my player toches the end it does nothing, no errors nothing

  • @stev1634
    @stev1634 Před 4 lety +51

    2:59 For some reason, Unity is not allowing me to drag and drop my GameManager script into the Game Manager slot in the End Trigger.

    • @illustrukarma
      @illustrukarma Před 4 lety +4

      probably forgot to set the variable of gamaemanager as public

    • @abhiyans5510
      @abhiyans5510 Před 4 lety

      Did you save the codes and written the code correctly because I forgot to save.

    • @chillzonegaming4776
      @chillzonegaming4776 Před 4 lety +12

      drag the gamemanager object not script

    • @HaloWolf102
      @HaloWolf102 Před 4 lety +5

      Same, I tried to make a reference to a Rigidbody, I made it public, gave it a name, but it doesn't allow me to drag anything into it. You can't make anything public for some unknown reason.
      I can't play anything because it says I have compiler errors. The only "error" (It's a message)I see is "Comparing tags using == is inefficient" inside Visual Studio.
      errorCS1061 GameManager does not contain a reference to EndTrigger.
      I just remade the script, named it something different, and changed all the code that had 'EndTrigger' and "CompleteLevel", and it worked for no tangible reason.

    • @HaloWolf102
      @HaloWolf102 Před 4 lety

      Now I'm getting another error, my god.
      I mean like, it prints to the console that the level was won, but it also returns an error.
      NullReferenceException: Object reference not set to an instance of an object.
      EndTrigger.OnTriggerEnter ()
      Edit:(I'm just a moron, I put the EndTrigger script in the player for no reason, I removed it, and it's good.)

  • @sarthakbose9022
    @sarthakbose9022 Před 4 lety

    Thank you ur videos are really helpful and informative.

  • @giannis077
    @giannis077 Před 4 lety

    Thank you very much for the tutorials.You are awesome

  • @nooreldali7432
    @nooreldali7432 Před 5 lety +3

    *googling* : How to like a video twice?
    amazing tutorial bro

  • @nidhinrajesh8877
    @nidhinrajesh8877 Před 7 lety +103

    This guy should have about 1M subscribers..!

  • @watchmecode5239
    @watchmecode5239 Před 3 lety +1

    It`s good to stay organized!

  • @cheesymcnuggets
    @cheesymcnuggets Před rokem

    From accidentally duplicating scripts and somehow placing my ground object with the player object and creating the animations in the wrong location, i finally fixed all my issues. Never give up on trying to solve the problem as this is exactly what the difficulties of game development are. I'm excited to start making my own games whether it's for game jams, personal projects or trying to release a full commercial game. This is where the fun begins...

  • @codingchannel6576
    @codingchannel6576 Před 3 lety +12

    if its says that you already have the namespace ..., that means that you have the same Script 2 times in your Project. Just close those and delete one of them

    • @skyblue1954
      @skyblue1954 Před 3 lety

      OMG THANK YOU, i spent like an hour trying to find out what i did wrong XD

    • @deiwman4604
      @deiwman4604 Před 3 lety

      Bless your soul!

  • @musicofresist3588
    @musicofresist3588 Před 3 lety +8

    If you're making a 2D Game and you can't see a "Level Won" message, check these things:
    -IsTrigger on the BoxCollider2D of End should be Checked
    -OnTriggerEnter should be OnTriggerEnter2D
    -In the parentheses, Collider should be Collider2D
    -Correct capitalization on everything

    • @mr.awesome851
      @mr.awesome851 Před 2 lety +3

      Thank you!! All I needed was to add "2D" to OnTriggerEnter. You saved me hours of research, haha.

  • @JohnSmith-lr9pj
    @JohnSmith-lr9pj Před 3 lety +1

    2021: Very new to this so I may be wrong, however, I spent ages on trying to get the animation to work properly. I had this issue where it would fire automatically when pressing the play button. I managed to figure it out. I believe it had an issue to do with some legacy animation options from the different versions of unity. Ended up fixing this by doing the following:
    1. remove the animation controller. All I needed was the animation 'level complete', created in the animation window.
    2. with your 'Level Complete' UI element selected, add a component > Animation (NOT Animator).
    3. Drag in your level complete animation into the Animation box of the newly added component.
    4. Ensure play automatically is checked as when the UI is spawned in by the END trigger, the animation begins.
    5. Turn off the level complete UI so it isn't visible on start.
    This got things working for me. In hindsight, I think I could have added the Animator Controller as a component to the Level Complete UI instead of a single Animation component. But hey, after a few hours of head-scratching I was just happy to see the UI fade into existence.
    Hope this helps someone and feel free to correct me if I'm wrong :D.

  • @ItsEnder
    @ItsEnder Před 4 lety +1

    quick tip for people trying to stop the end trigger from being activated by obstacles and that were having trouble doing so.
    Use this code on your End Trigger Script:
    public GameManager gameManager;
    private void OnTriggerEnter ()
    {
    gameManager.CompleteLevel();
    }
    }
    and this code on your GameManager script:
    public void CompleteLevel()
    {
    if (gameHasEnded == false)
    {
    Debug.Log("Level Completed");
    }
    }
    obviously you'll want to replace the Debug Log with the Game Won code he provides above but this method is good because it used the gameHasEnded variable that has already been made for the purpose of not spamming the GameEnd command and seems to be pretty stable/reliable from my testing. I haven't had any triggers go through other then those by a Player who has not crashed into any obstacles yet.

  • @jonaskohl13
    @jonaskohl13 Před 7 lety +34

    5:59 "The anime duh"

    • @taaamas7785
      @taaamas7785 Před 4 lety +2

      Just how all i hear when he says "Game Manager" is "Gay Manager"

  • @moogstirgamer5247
    @moogstirgamer5247 Před 6 lety +32

    Some reason the 'End Trigger part caused errors even though i coppied through perfectly and redid the steps, oh well, these are great videos! Thanks!

    • @Shrink_Assault
      @Shrink_Assault Před 5 lety +5

      Same. no idea wat to do

    • @nikinovelle4278
      @nikinovelle4278 Před 5 lety +2

      Same

    • @shapetick4096
      @shapetick4096 Před 5 lety +2

      just rewrite everything, I had an error so I just rewrote everything and it worked

    • @Shrink_Assault
      @Shrink_Assault Před 5 lety

      @@nikinovelle4278 Cant remember wat i did to fix it, iv had soo many issues to fix i cant remember anymore lol, maybe it was the problem i had when i had to update something on Unity (even though i recently installed Unity, it doesn't come with updated stuff i guess). Also u have to always copy/paste ur errors to google and try to find a fix there, or use the Unity Forums. That's how i eventually fixed my issues.

    • @theblueslime-tbs7083
      @theblueslime-tbs7083 Před 4 lety +1

      I know I'm late but you might have named your script and end trigger the same thing that was my problem anyway

  • @chlasma
    @chlasma Před 3 lety

    Those are the Tutorials you always wished to have right? =) Thank you so much!!!

  • @Studi0usKidd0
    @Studi0usKidd0 Před 4 lety

    Extremely helpful video!

  • @fanimations.3609
    @fanimations.3609 Před 6 lety +4

    When I try to record my animation, nothing happens when I move the keyframe parts in the animator. It just stays the way I put it last. I need assistance of how to record an animation.

    • @sabana7564
      @sabana7564 Před 3 lety

      Highlight your LevelComplete panel in the hierarchy Window

  • @hamzahahmad1670
    @hamzahahmad1670 Před 6 lety +6

    We made a public GameManager variable in our EndPoint script. How does unity work out wether we're referring to the GameManager object, or the GameManager script attached to it?

    • @LesloRichy
      @LesloRichy Před 3 lety

      That is the exact problem I'm having

    • @thenecromancer4113
      @thenecromancer4113 Před 3 lety

      With the unknown name, it will look for a script with that name inside the object, and it pulls out the script. The gameManager; part is simply a variable, meaning that when you refer to gameManager, you're referring to the script.

  • @MoonV29
    @MoonV29 Před 3 lety

    Thank you so much. All i needed was collision enter. wow

  • @Loucrazy1
    @Loucrazy1 Před 4 lety

    pretty cool, now it's 10:30pm and I'm here since 19 pm... so much fun fixing those damn mistakes

  • @flem1431
    @flem1431 Před 3 lety +6

    When I came to 9:10 in my own code, then the function LoadNextLevel didn't appear at all. Note that I have remembered to make the function public and to attach the script that contains the function to the panel that is being animated.
    What could I be doing wrong???

  • @h3rinnegankakashi345
    @h3rinnegankakashi345 Před 4 lety +58

    I made my level too hard and instead of changing it to make it easier I coded an obscure button on the keyboard as a way to fly xD so I can just quickly test without changing stuff (while still keeping that level hard)

    • @SpeedyTheGoddess
      @SpeedyTheGoddess Před 4 lety +4

      lol I did the same thing with my spacebar. Eventually I might make it into a jump instead of flight, but it's nice for testing it quickly!

    • @nikolasbabetas3490
      @nikolasbabetas3490 Před 4 lety +1

      lmao i have done the same i have space for flying and w for going really fast when flying

    • @why8402
      @why8402 Před 4 lety +1

      Same I coded w to jump, but you kind of just fly.

    • @zerlontroytabuco8049
      @zerlontroytabuco8049 Před 4 lety +1

      @@why8402 what's the code for the jump and fly? and if u know also about the stop

    • @why8402
      @why8402 Před 4 lety +2

      @@zerlontroytabuco8049 I don't know off the top of my head, I will check but basically you copy one of the side to side scripts that add force and you change it from the x axis to the y axis, but I don't know how to make it stop, when you hold down jump, you can fly, so you might also want to look into that. Give me like 2 hours I can give you the code.

  • @cinnamonkittamon
    @cinnamonkittamon Před 4 lety +1

    I don't know if this is covered in a video after this one, but I stopped for now at here to add additional levels. I also managed to implement a ducking function by changing the scale on the y axis of the character to let it duck under a new green block I made which is kinda like a table. I also found I was able to move the hitboxes of the green blocks that make up the table to make it easier to get under and so it didn't randomly stop working

    • @cinnamonkittamon
      @cinnamonkittamon Před 4 lety

      I also added a small text box at the top left of the screen to say what level the player is currently on. Did the same thing as with the score text, but I made it reference the scene name in the same way the restart function does and used that as the text instead

  • @alsomestode4398
    @alsomestode4398 Před měsícem

    For the longest time, I was trying to figure out why I couldn't get my Game Manager code to work with the EndTrigger code until I realized I put "public GamerManager gameManager;" hahaha! This has really been an eye opening experience to how frustrating coding can be to just a small mistake, but how satisfying it can be when you find that mistake and fix it!

  • @frayedsanity
    @frayedsanity Před 5 lety +4

    Loving the videos but I can't get the "Level Complete" screen to show and the animation event errors out with missing component.

    • @baabaaer
      @baabaaer Před 4 lety +1

      I have the opposite problem, it shows all the time!

    • @Calebb_C
      @Calebb_C Před 4 lety +1

      @@baabaaer try disabling the level complete not the text but the plane

  • @supreetkumar7604
    @supreetkumar7604 Před 5 lety +4

    I did UI part correctly as shown & disabled temporarily. Then i wrote, completeLevelUI.SetActive(true); . Then i disabled the LevelComplete. But when i hit the end object, it dosent displays the end UI. Anybode help!

    • @MiScusi69
      @MiScusi69 Před 2 lety

      I can't even start the game :(

  • @MaxAttack78
    @MaxAttack78 Před 4 lety +1

    When I try to do the animation and i switch to 'level' to make it transparent it ends my recording. If I try to record on the 'level' tab the background dosent fade in. And the same with the 'complete' tab. Is there any way to fix this?

  • @FaizanEjaz
    @FaizanEjaz Před rokem

    thanks for helping. keep it up !