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/
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!
Guys I need your help whenever the player (cube) touch the ground the game restarts help plz
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? 🙂
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 🙂
When I try to make the player a prefab it says that it references a missing script, and therefore is not allowed. Any tips?
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?
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???
As you can see, the views keep decreasing after each passing video because people lose interest
from what country are you from? just asking
in my visual studio code, i do get the suggestions when i type but not stuff like EndGame. Is there a reason for that?
AssetsScriptsPlayerCollision.cs(13,13): error CS0103: The name 'FindObjectofType' does not exist in the current context
pls help
for some reason as soon as i start the game i get the game over message
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?
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
HELP IM GETTING THIS ERROR
THE GAME MANAGER ONE
I HAVE ALL SCRIPTS IN SCRIPTS FOLDER AND NOWHERE ELSE
HELP THE 2,19 ERROR
2020 anyone
whenever i start my game it shows game over in cinsole and player doesnt move
I did everything correctly but it broke and I have to do everything from the start 😭. I had just wasted like 4 hours
I get the EndGame() is inaccesible due to its protection level
Can't seem to get "LoadNextScene" function in my animation event drop down list, although already specified the function in visual studio.
what is he saying about this gay manager?
just to be sure the statement " Debug.Log ("Game Over");" is not nessesarry
I got my first crash lol
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
We started with 4 Million. Now we are down to 650,000.
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
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!
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? 🙂
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
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
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
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"
can somebody help me?Im getting a message saying "Trying to Invoke method: GameManager.Restart couldn't be called."
Me not having a game manager script after I make one and save it
Digital Karen wants to speak to the game manager
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!