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

Поделиться
HTML-код
  • Опубликовано: 25 мар 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...

Комментарии • 3,2 тыс.

  • @mosspeltmintleaves
    @mosspeltmintleaves 5 лет назад +2103

    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 5 лет назад +65

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

    • @mohammedelhamouti2971
      @mohammedelhamouti2971 5 лет назад +10

      Thank u brother.

    • @marinomiskovic5072
      @marinomiskovic5072 5 лет назад +11

      Thanks bro.

    • @FurryDanOriginal
      @FurryDanOriginal 5 лет назад +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 5 лет назад +4

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

  • @lachiebell9656
    @lachiebell9656 3 года назад +572

    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 3 года назад +8

      howd you do it ?

    • @lachiebell9656
      @lachiebell9656 3 года назад +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. 3 года назад +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 3 года назад

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

    • @QuotivationOfficial.
      @QuotivationOfficial. 3 года назад

      mick laz can you text me in discord?

  • @MiloWildfire
    @MiloWildfire 3 года назад +385

    "Are ye winning son?"
    "Not yet"

    • @edulee1861
      @edulee1861 3 года назад +42

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

    • @1977shorts
      @1977shorts 3 года назад +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 3 года назад +5

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

    • @sirspongadoodle
      @sirspongadoodle 2 года назад

      @@1977shorts no self promo unless you homo.

  • @coincidenta7
    @coincidenta7 3 года назад +594

    im literally getting addicted to playing my own game

    • @lordcatington8188
      @lordcatington8188 3 года назад +50

      Well then you're on the right track!

    • @maggiethegamer1271
      @maggiethegamer1271 3 года назад +32

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

    • @lordcatington8188
      @lordcatington8188 3 года назад +46

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

    • @arnavgupta8376
      @arnavgupta8376 3 года назад +1

      Same is happening to me

    • @Adinkya
      @Adinkya 3 года назад +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

  • @ethanperron4834
    @ethanperron4834 7 лет назад +462

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

    • @jorgekorn52
      @jorgekorn52 5 лет назад +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 5 лет назад +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 3 года назад +1

      Nb@@BeemoR6 k

    • @muffinmendy7327
      @muffinmendy7327 3 года назад

      Agree

    • @not_herobrine3752
      @not_herobrine3752 3 года назад

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

  • @oddguyamaar9191
    @oddguyamaar9191 5 лет назад +293

    "► 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 3 года назад +2

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

  • @Dluxe
    @Dluxe 3 года назад +272

    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 3 года назад +9

      This comment needs to be on the first video lol

    • @marcussyyy
      @marcussyyy 2 года назад +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 2 года назад

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

    • @potitete6531
      @potitete6531 2 года назад +1

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

  • @willpetillo1189
    @willpetillo1189 3 года назад +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 2 года назад

      Than bro

    • @davidthompson3367
      @davidthompson3367 2 года назад +2

      Tysm * auto correct

    • @JellyGang680
      @JellyGang680 9 месяцев назад

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

    • @darkduet8458
      @darkduet8458 8 месяцев назад

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

    • @axoomi1200
      @axoomi1200 6 месяцев назад +1

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

  • @manantank
    @manantank 5 лет назад +608

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

  • @GameOver7853
    @GameOver7853 7 лет назад +291

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

    • @luxaarts
      @luxaarts 6 лет назад

      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 6 лет назад

      True

    • @Cam-uf9ke
      @Cam-uf9ke 5 лет назад

      same with me

    • @turnoffthetv7709
      @turnoffthetv7709 5 лет назад

      I know.

    • @digiit
      @digiit 5 лет назад +1

      There is a thing called ASMR.. Lol

  • @MrGhoulGamer
    @MrGhoulGamer 4 года назад +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

  • @layunaina6234
    @layunaina6234 4 года назад +3

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

  • @AlucardC99
    @AlucardC99 6 лет назад +445

    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!

  • @xuraith
    @xuraith 7 лет назад +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

  • @necronomnoms9563
    @necronomnoms9563 4 года назад +429

    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 4 года назад +1

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

    • @necronomnoms9563
      @necronomnoms9563 4 года назад +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 4 года назад +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 3 года назад +1

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

    • @Strykiiid987
      @Strykiiid987 3 года назад +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

  • @thomasedwardking7286
    @thomasedwardking7286 Год назад +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.

  • @cosmovandam
    @cosmovandam 3 года назад +6

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

  • @jeetwinkles5792
    @jeetwinkles5792 3 года назад +60

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

    • @mp3audio491
      @mp3audio491 3 года назад

      Are you still working in unity ?

    • @Divility
      @Divility 2 года назад

      @@mp3audio491 hes prob not

    • @mp3audio491
      @mp3audio491 2 года назад

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

    • @Divility
      @Divility 2 года назад +1

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

    • @jazylboukerdenna2312
      @jazylboukerdenna2312 2 года назад

      gg

  • @furiousfear772
    @furiousfear772 3 года назад

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

  • @hpenvy15
    @hpenvy15 3 года назад

    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.

  • @tariqalkhawaja1285
    @tariqalkhawaja1285 4 года назад +9

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

    • @JellyGang680
      @JellyGang680 9 месяцев назад

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

  • @shm1st
    @shm1st 4 года назад +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!!

  • @elijahmock
    @elijahmock Год назад +39

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

  • @shakedangi1013
    @shakedangi1013 3 года назад

    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 (:

  • @kal0rd597
    @kal0rd597 5 лет назад +3

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

  • @Phoenix-0455
    @Phoenix-0455 4 года назад +140

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

    • @maxyboyo
      @maxyboyo 4 года назад +8

      Select the furry door instead OwO

    • @evzyl8409
      @evzyl8409 3 года назад

      @@maxyboyo saaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA

    • @jindrasyky2354
      @jindrasyky2354 3 года назад

      ah yes, I should have known sooner I guess

    • @Phoenix-0455
      @Phoenix-0455 3 года назад +4

      @@maxyboyo uwu

    • @ritsh_
      @ritsh_ 2 года назад

      W8 wat

  • @Srcsqwrn
    @Srcsqwrn 4 года назад +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.]

  • @skewminds3756
    @skewminds3756 2 года назад +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 2 года назад +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 Год назад +2

      Thank youuuuu, I was going crazy

    • @skewminds3756
      @skewminds3756 Год назад +1

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

    • @intelblox7354
      @intelblox7354 Год назад +2

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

    • @skewminds3756
      @skewminds3756 Год назад +1

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

  • @KayoticFoXx
    @KayoticFoXx 5 лет назад +3

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

  • @nikolasfiler5241
    @nikolasfiler5241 4 года назад +4

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

  • @beldroxd4542
    @beldroxd4542 4 года назад

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

  • @Xardas_
    @Xardas_ 3 года назад

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

  • @heavenly6109
    @heavenly6109 2 года назад +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 Год назад +1

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

    • @dingo_walters
      @dingo_walters 9 месяцев назад

      THANK YOU SM

  • @theearthburner6159
    @theearthburner6159 5 лет назад +6

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

  • @matthias0054
    @matthias0054 4 года назад

    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!

  • @OW_Archive
    @OW_Archive 3 года назад

    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.

  • @david8j796
    @david8j796 4 года назад +394

    the 91 dislikes are Epic Games employees

    • @needful_meds9572
      @needful_meds9572 4 года назад +5

      SAME!!!!

    • @rowanswatling3766
      @rowanswatling3766 4 года назад +34

      needful_meds how does that make any sense in this context lol

    • @iteratedofficial
      @iteratedofficial 4 года назад +2

      @@rowanswatling3766 nvm

    • @Hietakissa
      @Hietakissa 4 года назад +26

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

    • @rowanswatling3766
      @rowanswatling3766 4 года назад +13

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

  • @ethanfarlow7791
    @ethanfarlow7791 3 года назад +56

    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 3 года назад

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

    • @aswathyn6999
      @aswathyn6999 3 года назад +2

      still not working

    • @Tutorial7a
      @Tutorial7a 3 года назад +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. :)

    • @papita1334
      @papita1334 3 года назад

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

    • @Tutorial7a
      @Tutorial7a 3 года назад

      @@papita1334 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.

  • @aleksandarstojanovic8304
    @aleksandarstojanovic8304 3 года назад

    Awesome tutorials by @Brackeys as always. Thanks !

  • @ericabutts2906
    @ericabutts2906 3 года назад

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

    • @tudorradu5848
      @tudorradu5848 3 года назад

      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 3 года назад

      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!!!!!!!

  • @haktic8074
    @haktic8074 7 лет назад +4

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

    • @Brackeys
      @Brackeys  7 лет назад +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 7 лет назад +1

      Ah yeah, forgot that about Roboto! Great tutorials!

  • @asymmetricfuzion970
    @asymmetricfuzion970 3 года назад +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 9 месяцев назад

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

  • @TheWizard991
    @TheWizard991 Год назад

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

  • @KarpKore.
    @KarpKore. 2 года назад +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.

    • @slushy1594
      @slushy1594 2 года назад +1

      Omg thank you

    • @FireDNicer
      @FireDNicer 2 года назад +1

      Thank you very much it helped me a lot. 👍

    • @falopr411
      @falopr411 Год назад +1

      Thanks you !

  • @mazharultalukdar7348
    @mazharultalukdar7348 5 лет назад +5

    You are literally my game development professor 😁

  • @chris_gamedev
    @chris_gamedev 6 лет назад +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 6 лет назад +13

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

    • @Bof992
      @Bof992 3 года назад +5

      Yeah, its the only con i think.

    • @beyondme9369
      @beyondme9369 3 года назад +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 3 года назад +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 3 года назад

      @@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..

  • @abusedchimpyt8367
    @abusedchimpyt8367 3 года назад

    Honestly the best tutorials i've seen

  • @bardhselimi8961
    @bardhselimi8961 3 года назад +2

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

  • @perouzzman5742
    @perouzzman5742 Год назад +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.

  • @Alex-lt5ho
    @Alex-lt5ho 3 года назад +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 3 года назад +1

      personally I put him at 1.75 speed

    • @sirspongadoodle
      @sirspongadoodle 2 года назад

      @@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 2 года назад

      @@sirspongadoodle are we watching the same video bro?

    • @DecagerGames
      @DecagerGames 2 года назад

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

    • @muslimbashir7778
      @muslimbashir7778 Месяц назад

      Same

  • @PabloFedericoRuizDiazRios
    @PabloFedericoRuizDiazRios 4 года назад

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

  • @bakkakun9326
    @bakkakun9326 4 года назад +10

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

  • @easyrider788
    @easyrider788 5 лет назад +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! :)

  • @bleuground
    @bleuground 7 лет назад +16

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

  • @atm0t5
    @atm0t5 2 года назад

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

  • @ajtheallmighty
    @ajtheallmighty 4 года назад

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

  • @fml4204
    @fml4204 3 года назад +24

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

    • @brainjuice2144
      @brainjuice2144 Год назад

      Thx

    • @user-lz2qb5fh6o
      @user-lz2qb5fh6o Год назад

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

    • @zeroskyri
      @zeroskyri 10 месяцев назад

      @@user-lz2qb5fh6o That didnt work on me

    • @jylppy244
      @jylppy244 9 месяцев назад +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 9 месяцев назад

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

  • @sowanoo9149
    @sowanoo9149 4 года назад +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 4 года назад

      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

  • @chlasma
    @chlasma 3 года назад

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

  • @yuukikobayashi6859
    @yuukikobayashi6859 3 года назад

    Really Love your series
    Thank you very much

  • @forexalised9053
    @forexalised9053 6 лет назад +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.

  • @nidhinrajesh8877
    @nidhinrajesh8877 7 лет назад +103

    This guy should have about 1M subscribers..!

    • @EdgePR0
      @EdgePR0 6 лет назад +11

      or more

    • @dhanusheashwar
      @dhanusheashwar 5 лет назад +5

      What that is barlery anything. He should have 10000m

    • @wisdomcube7789
      @wisdomcube7789 5 лет назад +1

      Agreed

    • @hunormagyar1843
      @hunormagyar1843 4 года назад +2

      He has 700k currently when I write this, we're close...

    • @DeadSpacedOut
      @DeadSpacedOut 4 года назад +1

      @@hunormagyar1843 he's at 811k now!

  • @Loucrazy1
    @Loucrazy1 3 года назад

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

  • @janbrezik5816
    @janbrezik5816 2 года назад

    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.

  • @skewminds3756
    @skewminds3756 2 года назад +3

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

  • @mhenchion6524
    @mhenchion6524 3 года назад +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

  • @watchmecode5239
    @watchmecode5239 3 года назад +1

    It`s good to stay organized!

  • @sarthakbose9022
    @sarthakbose9022 4 года назад

    Thank you ur videos are really helpful and informative.

  • @mostafahesham8211
    @mostafahesham8211 3 года назад +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 2 года назад

      Miracle man

    • @rosanslomp2932
      @rosanslomp2932 Год назад

      thanks, I was having this problem xD

    • @JellyGang680
      @JellyGang680 9 месяцев назад

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

  • @nooreldali7432
    @nooreldali7432 5 лет назад +3

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

  • @quiettuber4522
    @quiettuber4522 2 года назад

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

  • @andoeffects
    @andoeffects 4 года назад

    Fantastic tutorials,Thank you.

  • @moogstirgamer5247
    @moogstirgamer5247 6 лет назад +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 4 года назад +5

      Same. no idea wat to do

    • @nikinovelle4278
      @nikinovelle4278 4 года назад +2

      Same

    • @shapetick4096
      @shapetick4096 4 года назад +2

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

    • @Shrink_Assault
      @Shrink_Assault 4 года назад

      @@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 4 года назад +1

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

  • @omarramos4063
    @omarramos4063 3 года назад +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

  • @CSBAjay
    @CSBAjay 3 года назад

    wow so much content in 10min video. superb

  • @vinaybhatt1335
    @vinaybhatt1335 3 года назад

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

  • @codingchannel6576
    @codingchannel6576 3 года назад +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 3 года назад

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

    • @deiwman4604
      @deiwman4604 2 года назад

      Bless your soul!

  • @jonaskohl13
    @jonaskohl13 7 лет назад +34

    5:59 "The anime duh"

    • @taaamas7785
      @taaamas7785 4 года назад +2

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

  • @cheesymcnuggets
    @cheesymcnuggets Год назад

    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...

  • @giannis077
    @giannis077 3 года назад

    Thank you very much for the tutorials.You are awesome

  • @musicofresist3588
    @musicofresist3588 3 года назад +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 2 года назад +3

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

  • @alexsirbu9266
    @alexsirbu9266 3 года назад +5

    Brackeys: remember to check "is trigger"
    Me: yeah nah, i'll just spend an hour to figure out why it dosen't work

  • @samtrafton8445
    @samtrafton8445 2 года назад +1

    If you set a boolean variable inside of the score counter and switch it off from the game manager you can get the score to stop counting when you collide/fall below -1y

  • @cinnamonkittamon
    @cinnamonkittamon 4 года назад +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 4 года назад

      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

  • @h3rinnegankakashi345
    @h3rinnegankakashi345 4 года назад +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 4 года назад +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 4 года назад +1

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

    • @why8402
      @why8402 4 года назад +1

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

    • @zerlontroytabuco8049
      @zerlontroytabuco8049 4 года назад +1

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

    • @why8402
      @why8402 4 года назад +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.

  • @arnoldwehbe9677
    @arnoldwehbe9677 3 года назад +4

    Brackeys: AnimeDUH
    Animator: Am I a joke to you?

    • @berku
      @berku 3 года назад

      same xd

  • @MoonV29
    @MoonV29 3 года назад

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

  • @alsomestode4398
    @alsomestode4398 16 дней назад

    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!

  • @guidc
    @guidc 6 лет назад +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 5 лет назад +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 5 лет назад +3

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

    • @ceduric4425
      @ceduric4425 5 лет назад +2

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

    • @mosspeltmintleaves
      @mosspeltmintleaves 5 лет назад +2

      You are all welcome! Glad I could help :)

    • @yellowcyborg4729
      @yellowcyborg4729 5 лет назад +1

      Thanks so much! Was looking for this

  • @stev1634
    @stev1634 4 года назад +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 4 года назад +4

      probably forgot to set the variable of gamaemanager as public

    • @abhiyans5510
      @abhiyans5510 4 года назад

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

    • @chillzonegaming4776
      @chillzonegaming4776 4 года назад +12

      drag the gamemanager object not script

    • @HaloWolf102
      @HaloWolf102 4 года назад +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 4 года назад

      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.)

  • @Studi0usKidd0
    @Studi0usKidd0 3 года назад

    Extremely helpful video!

  • @pythonautomaton4695
    @pythonautomaton4695 3 года назад

    I still watch till the end of this series

  • @anotherrandominternetperso4994
    @anotherrandominternetperso4994 3 года назад +112

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

    • @ghouldrago360
      @ghouldrago360 3 года назад +1

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

    • @dosui4609
      @dosui4609 3 года назад +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 3 года назад +1

      I did it !!😅

    • @anotherrandominternetperso4994
      @anotherrandominternetperso4994 3 года назад

      @@dosui4609 Wow, Congratulations!

    • @ilovecairns5181
      @ilovecairns5181 3 года назад

      I made my player bop up and down :)

  • @PlayStatiowned
    @PlayStatiowned 4 года назад +3

    Love the tutorials but they're ridiculously fast. I have to pause and rewind so many times. Thank you for the help though anyways 😁

  • @ScilexGuitar
    @ScilexGuitar 3 года назад

    I made the obstacles spawn randomly as the player moved forward, instead of doing levels. Pretty fun!

  • @gamespsych1177
    @gamespsych1177 3 года назад

    If you did everything right and instead of the next level loading the current level just restarts after completing it, the problem might be that your player falls off the ground and since its beneath "-1y" the level restarts. Quickest way to solve this it to just extend the ground plane from the z axis to make sure there is enough room for the player to keep going till the level complete animation completed.

  • @hamzahahmad1670
    @hamzahahmad1670 6 лет назад +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 3 года назад

      That is the exact problem I'm having

    • @thenecromancer4113
      @thenecromancer4113 3 года назад

      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.

  • @thiccnugger6820
    @thiccnugger6820 3 года назад +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 3 года назад +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 3 года назад

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

    • @mimic25
      @mimic25 Год назад

      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!😳

  • @JohnSmith-lr9pj
    @JohnSmith-lr9pj 3 года назад +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.

  • @SamuraiDestroy
    @SamuraiDestroy 2 года назад +2

    If you're animating and keyfames aren't appearing, make sure that you're in recording mode. Took me some time to figure that out and I hope I helped.