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

33
2



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://chilmingtongreen.org/

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

33 COMMENTS

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

  2. Good Morning Gentlemen .
    I followed Every single step of this tutorial , except the " Game has ended" if statement .
    I did not need it , Do not ask me how , it just worked without it, The " GAMEOVER" displayed once.
    BTW i have Viasual studio 2008 version which is a crap , i needed to type every single thing , No accessing menu + no variable helper , NOTHING . just the error.
    Thank you Brackeys , you are really helping me after quieting coding for 2 years after graduating.

  3. "We probably geting some Errors"

    Danm i didnt get one does this make me good or bad because i somehow messed up but it worked for me?

  4. Make panel show player if he want to go if he unlock the next level somthing like that next ,replay and back if there is a level befor that not replay or make him in infinty loop

  5. Thanks @brackeys for putting your scripts for download,i didn t know why i get like instantly gamveover in my console,but the problem was that this ; was at the end of a command that didn t need it,and this almost destroyed my project,cool thing that i watched my script and your and could find the problem,thanks again.

  6. when i added public float restartDelay = 1f i got a massive preformance hit with frames. can anybody help me? i think it might also be the lighting thing he was talking about but i have 0 evidence of anything. it just makes the game really unplayable. any help is appreciated

  7. Pls help I have this error and I can;t figure out what is wrong with my scripts

    The error:
    Assets/Scripts/PlayerCollision.cs(15,45): error CS1061: 'GameManager' does not contain a definition for 'EndGame' and no accessible extension method 'EndGame' accepting a first argument of type 'GameManager' could be found (are you missing a using directive or an assembly reference?)

    Player Collision Script:
    using UnityEngine;

    public class PlayerCollision : MonoBehaviour {

    public PlayerMovement movement;

    void OnCollisionEnter (Collision collisionInfo)
    {

    if (collisionInfo.collider.tag == "Obstacle")
    {
    movement.enabled = false;
    FindObjectOfType<GameManager>().EndGame();
    }
    }

    }

    Game Manager Script:
    using UnityEngine;

    public class GameManager : MonoBehaviour {

    public void Endgame()
    {
    Debug.Log("GAME OVER");
    }

    }

    Note: I have not yet finished the video, waiting to solve this issue, and I can't seem to figure it out. If you choose to help, thanks in advance.

  8. Hi, I need help with one thing. My cube automatically rotates very slowly when i play the game for some reason. How do I fix this?

  9. 10:42 i cant get to work, it just doesnt have a delay. all it says isnt an error message, but a warning saying: AssetsScriptsGameManager.cs(24,14): warning CS8321: The local function 'Restart' is declared but never used

    Pls help!!!

  10. Hey Guys does anyone know how to get this to actually work. I have copied his code but I cant even get it to respwan whatsoever. Thanks SO Much.

  11. This is the video where the unexplainable errors start coming in and I have no idea what to do plz help 😓😅

    Like plz tell me what “the namespace ‘<global namespace>’ already contains a definition for PlayerCollision” means

  12. CAN SOMEONE ANSWER THIS, why does my console say GAME OVER even though i have not fallen from the platform please help!

  13. Many problems here ..
    My game looks very blurry…like it has a very low resolution and Same with my ui text…. Way too blurry..
    If I adjust the font size to 1, it's the biggest and if I do something like 12 or 23 it just becomes smaller… I don't know why this happens but somebody save me plzz

  14. I had an idea by that part where he added the "bool" value to change it so it only said the game over 1 time if you fell. Couldn't you just change the value from "less than -1" to "equal to -1"? Then I imagine it would only display it one time as it falls past the -1 mark and makes it alot less complicated. Does this make sense?

  15. Hi so how would i do the following. When my timer hits 0 then I want the game to go the score menu and have his score display there ?
    If possible code would be helpfull, im still new at this.

  16. after 8:49 i now get error: AssetsScriptsGameManager.cs(2,7): error CS0246: The type or namespace name 'SceneManagement' could not be found (are you missing a using directive or an assembly reference?)

    and:AssetsMaterialsGameManager.cs(2,19): error CS0234: The type or namespace name 'SceneManagment' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?) this (which from my understanding is just typo, that i fixed) But it is still there!

    and: AssetsScriptsGameManager.cs(5,14): error CS0101: The namespace '<global namespace>' already contains a definition for 'GameManager'

    and:AssetsScriptsGameManager.cs(10,17): error CS0111: Type 'GameManager' already defines a member called 'EndGame' with the same parameter types.

    PLS HELP!

  17. Guys help please, I don't have that "access window" also some of the typing stays normal colour like "PlayerMovement", "GameManager" etc. I think it's my Visual Studio, but I can't find the thing.

  18. "Game Over" is not working!!
    After trying everything (5-6 times) by following each and every comment, my "Game Over" text is still not appearing in the console. I think it is happening because in the visual editor "EndGame" isn't showing up.
    Coding and case sensitive scripts are absolutely correct, checked more than 10 times.
    PS- Using latest version of both software: Unity (2019.3.15f1) / Visual Studio (2019 16.6.1)

LEAVE A REPLY

Please enter your comment!
Please enter your name here