GAME OVER – How to make a Video Game in Unity (E08)



What happens when we lose?

● Download the Project Files:

♥ Support my videos on Patreon:

····················································································

This video is part of a mini-series on making your first game in Unity.

····················································································

♥ Donate:
♥ Subscribe:

● Website:
● Facebook:
● Twitter:

········································­­·······································­·­····

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

Nguồn: https://federicobellucci.net/

Xem thêm bài viết khác: https://federicobellucci.net/game/


Article Categories:
Game

Comments

  • Hello everyone!

    I've addressed this a few places (we talked about it in one of livestreams) but I probably haven't been clear enough to people who don't watch all the videos 🙂

    I've decided to focus more on standalone videos and smaller series. The reason for this is that I found that both the Tower Defense and the Multiplayer FPS series were getting too long which meant that only a very small fraction of the people who started watching actually got to the later videos. And this is a shame because a lot of the videos covered later in the series aren't harder to understand than the first ones and might be just as important.

    So instead I want to create videos that can apply to as many games as possible while still tackling some of the more advanced subjects. I think the Scope, Bullet Time and Volumetric Lights tutorials are good examples of this because they both cover subjects requested for the FPS and Tower Defense series but in a way that makes it usable to people working on other games as well.

    On top of that I had been getting request for a looong time to remake the Make a Game course because it was getting outdated. So I thought this would be a good opportunity to create a smaller series for beginners.

    I think overall since I started this new approach that the comments and feedback has been way more positive and the videos are getting way more views on average. I've also found that I have way more fun creating videos this way because it can be much more varied.

    I hope you guys understand and I'm just excited to bring you new interesting videos – Especially once we wrap up this short series 😀

    Thanks for being awesome!

    Brackeys July 21, 2020 6:03 pm Reply
  • Guys I need your help whenever the player (cube) touch the ground the game restarts help plz

    Mr. Gamer July 21, 2020 6:03 pm Reply
  • Does anyone have any idea why I'm getting an error in which the player collision script or the player movement script cant find the gamemanager script when i "FindObjectOfType"? I keep getting the following error:
    NullReferenceException: Object reference not set to an instance of an object
    PlayerCollision.OnCollisionEnter (UnityEngine.Collision collisionInfo) (at Assets/Scripts/PlayerCollision.cs:18)

    Any ideas? 🙂

    SniperJimmy July 21, 2020 6:03 pm Reply
  • Hello everyone, i can't drag the game manager into the player collision script, cause i don't have an empty "Game Manager" please help 🙂

    Francesco Paolo Marincolo July 21, 2020 6:03 pm Reply
  • When I try to make the player a prefab it says that it references a missing script, and therefore is not allowed. Any tips?

    Rich Holtzman July 21, 2020 6:03 pm Reply
  • hey im having this problem when the player hits something or falls of the ground an error comes saying NullReferenceException: Object reference not set to an instance of an object
    PlayerCollision.OnCollisionEnter (UnityEngine.Collision collisionInfo) (at Assets/Scripts/PlayerCollision.cs:13) what does this mean?

    Hriday Joshi July 21, 2020 6:03 pm Reply
  • i have so many errors how i can fix them??

    LibraryPackageCachecom.unity.timeline@1.2.14RuntimeUtilitiesAnimationPreviewUtilities.cs(44,33): error CS0246: The type or namespace name 'AnimatorBindingCache' could not be found (are you missing a using directive or an assembly reference?)
    AssetsScriptsPlayerMovement.cs(4,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'PlayerMovement'
    AssetsScriptsScore.cs(3,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'Score'
    AssetsScriptsPlayerMovement.cs(11,10): error CS0111: Type 'PlayerMovement' already defines a member called 'FixedUpdate' with the same parameter types
    AssetsScriptsScore.cs(10,10): error CS0111: Type 'Score' already defines a member called 'Update' with the same parameter types
    pls help me how i fix it???

    DabTop Grid July 21, 2020 6:03 pm Reply
  • As you can see, the views keep decreasing after each passing video because people lose interest

    Home Srn July 21, 2020 6:03 pm Reply
  • from what country are you from? just asking

    G4merL1oN July 21, 2020 6:03 pm Reply
  • in my visual studio code, i do get the suggestions when i type but not stuff like EndGame. Is there a reason for that?

    EllaHD July 21, 2020 6:03 pm Reply
  • AssetsScriptsPlayerCollision.cs(13,13): error CS0103: The name 'FindObjectofType' does not exist in the current context

    pls help

    Saad Yar Khan July 21, 2020 6:03 pm Reply
  • for some reason as soon as i start the game i get the game over message

    D3MISE July 21, 2020 6:03 pm Reply
  • My game is now restarting soon after starting. its actually giving me as much time as what i set for restart delay. anyone else dealing with this or by chance, actually solved this?

    Sleepybearxx92 July 21, 2020 6:03 pm Reply
  • I’m getting one syntax error with a close parentheses

    “Assets/GameManager.cs(2,34): error CS1003: Syntax error, ‘(‘ expected”

    And a not syntax error with a close parentheses

    “Assets/GameManager.cs(2,34): error CS1026: ) expected

    Please someone this is a desperate cry for help I just wanna continue past 8:53

    LIPOO888 July 21, 2020 6:03 pm Reply
  • HELP IM GETTING THIS ERROR
    THE GAME MANAGER ONE
    I HAVE ALL SCRIPTS IN SCRIPTS FOLDER AND NOWHERE ELSE
    HELP THE 2,19 ERROR

    Aggressive PVP July 21, 2020 6:03 pm Reply
  • 2020 anyone

    lucutes July 21, 2020 6:03 pm Reply
  • whenever i start my game it shows game over in cinsole and player doesnt move

    nethra July 21, 2020 6:03 pm Reply
  • I did everything correctly but it broke and I have to do everything from the start 😭. I had just wasted like 4 hours

    Norbertas Jas July 21, 2020 6:03 pm Reply
  • I get the EndGame() is inaccesible due to its protection level

    Petar Damjanovski July 21, 2020 6:03 pm Reply
  • Can't seem to get "LoadNextScene" function in my animation event drop down list, although already specified the function in visual studio.

    Chukwuma Akunyili July 21, 2020 6:03 pm Reply
  • what is he saying about this gay manager?

    Pavel Del July 21, 2020 6:03 pm Reply
  • just to be sure the statement " Debug.Log ("Game Over");" is not nessesarry

    VaMEr July 21, 2020 6:03 pm Reply
  • I got my first crash lol

    lucutes July 21, 2020 6:03 pm Reply
  • HeyBrackeys i got an error on the game it says AssetsscriptsPlayercollision.cs(16,44): error CS1061: 'GameManger' does not contain a definition for 'EndGame' and no accessible extension method 'EndGame' accepting a first argument of type 'GameManger' could be found (are you missing a using directive or an assembly reference?) do you know how to solve this

    Edwin Baez July 21, 2020 6:03 pm Reply
  • We started with 4 Million. Now we are down to 650,000.

    spencer hicks July 21, 2020 6:03 pm Reply
  • I'm kinda proud. I didn't be like 60% of people when using tutorials, I introduced sprinting on my own no tutorials no Google, I twisted versions of tutorials to create enemies and movable, yes movable by the player not already moving platforms

    Thicc Befox July 21, 2020 6:03 pm Reply
  • Can someone tell me how do I know when to put = or ==? I see sometimes he puts 2 == and just for testing I try put it just once and it doesn't work. So how do I know if I need to put one or two? Thanks for the videos!

    Abraham De Jesus July 21, 2020 6:03 pm Reply
  • So another nuub question here:
    @08:04 'then press dot'
    When i press dot, nothing comes up. Also, it seems to autocorrect to a load of random shit i dont need. Like, when i type in 'Transform' after public, it autofills 'CryptoAPITransform'
    Must be correcting for some different libraries(?) or something. Anyone know how to make it Unity freindly? 🙂

    Cian Finlay July 21, 2020 6:03 pm Reply
  • question: @05:27
    Why do we use rb.position? Surely we should use the Transform right? I cant even see a position on the RigidBody Component, its all just speeds.
    It works, but im confused. Anyone care to explain? <3

    Cian Finlay July 21, 2020 6:03 pm Reply
  • Assets/Scripts/Gamermanager.cs(2,19): error CS0234: The type or namespace name `SceneManagement' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?

    i am getting this error!!!
    Help Please

    Gaming Skeptos July 21, 2020 6:03 pm Reply
  • when the player hits the ground i get the end game message how do i prevent that
    never mind there was a bracket i didn't place that for some reason caused it

    bruh_make_me July 21, 2020 6:03 pm Reply
  • How to fix this?
    Assets/Scripts/PlayerCollision.cs(12.45): error CS0122: 'GameManager.EndGame()' in inaccessible due to its protection level.
    Also under every script there reads "The associated script cannot be loaded. Please fix any compile errors and assign valid script"

    Kona _ July 21, 2020 6:03 pm Reply
  • can somebody help me?Im getting a message saying "Trying to Invoke method: GameManager.Restart couldn't be called."

    Dimer July 21, 2020 6:03 pm Reply
  • Me not having a game manager script after I make one and save it

    Thomas Olivas July 21, 2020 6:03 pm Reply
  • Digital Karen wants to speak to the game manager

    Wonka_YT July 21, 2020 6:03 pm Reply
  • Thanks so much for these great videos!

    I ran into a snag by entering a small mistake in the code, in the playermovements script I accidentally wrote
    if (rb.position.x < -1f)
    instead of
    if (rb.position.y < -1f)

    so my game was restarting using data from the wrong axis.
    Anyway I didn't notice this at first, and I thought the problem was that my player was colliding with the ground at the start of the game over and over again. To check this I wrote a Debug.Log checking the y position to see if my player was dropping and colliding with the ground without me realising. It wasn't.

    ANYWAY, the point is, I wrote the debug.log code without even thinking about it and even though it wasn't the problem, I realised I had learnt how to problem solve and troubleshoot on my own!

    soon after i realised the actual problem but anyway, just wanted to share that cool little thing. You're an amazing teacher!

    Max Evans July 21, 2020 6:03 pm Reply

Leave a Comment

Your email address will not be published. Required fields are marked *