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...
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.
Literally been looking everywhere for an answer. Thanks bro. Literally simplest solution.
Thank u brother.
Thanks bro.
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.
Thanks. I was very confused because I didn’t try zooming in and thought it just didn’t appear
after 1 hour of stress and anger, i finally managed to add a fart sound effect when you hit an obstacle :)
howd you do it ?
@@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 :)
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'
@@QuotivationOfficial. i am not sure if u like i can call on discord and have a look?
mick laz can you text me in discord?
"Are ye winning son?"
"Not yet"
Are ya winning son? No father, i create the winning.
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
@@edulee1861 are ya winning son? No papa, im watching a tutorial to create the winning
@@1977shorts no self promo unless you homo.
im literally getting addicted to playing my own game
Well then you're on the right track!
Cool idea, making an addictive game and then playing it forever. Now some procedural generation and you got an internet phenomenon.
@@maggiethegamer1271 and make sure to throw in as many micro transactions as possible
Same is happening to me
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
Finally a unity tutorial that doesn't make me bored, explains in depth, but doesn't ramble! THANK YOI
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
@@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.
Nb@@BeemoR6 k
Agree
try Miziziz. You wont be dissapointed in the "doesnt ramble" section.
"► 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....!!!
When I make some money from my games, I swear I will come back to this channel and become a patreon!
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
This comment needs to be on the first video lol
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 ;-;
@@marcussyyy always look at the console!
It gives you the exact file and exact position of the error, really helps
its just everybody starting over again and again like me..
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
Than bro
Tysm * auto correct
Can someone help me? After I complete my level, only the words fade in, but the white background doesn't 8:12
@@JellyGang680 You must have missed something in the video, even the slightest detail matters
You are a legend I find you in every episode of the tutorial thanks from all of us
I feel like i'm committing a crime by watching Brakeys videos for free.
Gotta become a patron now i guess.
exactly!
Damn i feel the same.
@GlobaNuh yeah this feels to good to be true
Babi
@@lucutes2936 what
I don't know why but his videos are so satisfying to watch even though I'm not following the series
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 !!!
True
same with me
I know.
There is a thing called ASMR.. Lol
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
Thank you for keeping your tutorials concise, music free and for using proper English
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!
such a beautiful comment :')
so how far did you explore after all these months
so much that he doesn't visit youtube for tutorials and thus didn't see your reply ;)
forgot to reply XD
JC_Gaming .
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
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😊
oh, did he miss that or is that something that only happens in new versions of Unity?
@@BenJaded ah, someone else had the same problem as me on a forum, trying to do do an "on trigger enter" command
@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?
Thank you so much, stuck on this for like half an hour.
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
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.
You gotta love it when you fix something and don't know how or why you did, but it just works
AFTER NEARLY 5 HOURS OF ME BEING AN IDIOT I FINISHED EVERYTHING FOR THIS VIDEO AAAAAAAAAAAAAAAAAAAAAAAAAAHHHHHHHHHHHHH
Are you still working in unity ?
@@mp3audio491 hes prob not
@@Divility I wonder how much progress did he make in 7 months
@@mp3audio491 not sure but if he kept at it, hes probably very good at scripting by now
gg
Brackets 3 years later and I am still watching your tutorials. I hope you are happy doing what ever you are doing now.
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.
I would like to thank you for this series, this is an amazing introduction to Unity, keep up the good work
Can u help me? After I complete my level, only the words fade in, but the white background doesn't 8:12
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!!
So reset the whole project?
If the record button is grayed out in the Animation pane, make sure you have the LevelComplete component selected in the left panel.
Thank you brother
I have selected it but its still greyed out. Can you help?
Thanks man
Saved me, thanks dude
Thank you
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 (:
I can always trust you... THANK YOU! I am so grateful, your tutorials are 100% amazing!
"Don't select the anime-door..." - Brackeys 2017
Select the furry door instead OwO
@@maxyboyo saaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
ah yes, I should have known sooner I guess
@@maxyboyo uwu
W8 wat
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.]
update?
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.
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
Thank youuuuu, I was going crazy
@@nicholascarey243 ur welcome! I remember me also going crazy about this before I realized I need to click it manually.
@@skewminds3756 hey my animation works fine in the animator but in the game the animation doesnt run at all.. any help?
@@intelblox7354 umm I don't know and its a long time since I last used unity so I dont even remember. Sorry.
I thought it was impossible to learn how to start learning game development but you made it easy and understandable thank you
These videos are really awesome. Thanks for all your hard work.
I am having fun doing this bit the best part is seeing him having fun explaining it 💪
The best Unity tutorial that i've ever seen until now
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
Thank you very much. I was having the same issue and it worked for me.
THANK YOU SM
you are the best teacher u work like a pro software engineer
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!
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.
the 91 dislikes are Epic Games employees
SAME!!!!
needful_meds how does that make any sense in this context lol
@@rowanswatling3766 nvm
@@rowanswatling3766 Unreal Engine is developed by Epic Games, and Unity is a competitor of UE
Costed yes I’m talking about the guy who said SAME!!!
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
Next Level don't show after level complete anyone know about this
still not working
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. :)
@@Tutorial7a I have the same problem as Ethan and I didint understood ur explanation, can u help me please :(
@@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.
Awesome tutorials by @Brackeys as always. Thanks !
I'm definitely becoming a patron because of how easily I learned this much material. Wow
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?
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!!!!!!!
Just a hint, you can use rich text too, so you can use bold text
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! :)
Ah yeah, forgot that about Roboto! Great tutorials!
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!
Can u help me? After I complete my level, only the words fade in, but the white background doesn't 8:12
I've made Jumpy Cube game with the help of Brackeys videos. Such a nice guy to share all his skills with us.
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.
Omg thank you
Thank you very much it helped me a lot. 👍
Thanks you !
You are literally my game development professor 😁
This is a nice tutorial series, but it doesn't hurt to breath between the words, good thing you didn't faint :)
Dude, he just edits the videos like crazy. That's why he is so fast and never really messes up.
Yeah, its the only con i think.
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..
@@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
@@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..
Honestly the best tutorials i've seen
LEGEND man LEGEND, You helped and motivated me and so many others out for free!!
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.
I have him at half speed and this man types and talks like it's at normal. I can't keep up!
personally I put him at 1.75 speed
@@rexdoom3848 its because he doesnt do the videos the best. he either is rambling or is doing it. very hard to figure out when.
@@sirspongadoodle are we watching the same video bro?
@Sucky ive been doing this 1 year and i still come back to this tutorial occasionally lmao
Same
Excellent, so far is my first project on Unity3D and is awesome! thanks a lot
i need to rewatch the video 3 times to truly understand but i will not give up xD
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! :)
thank god my phone notified me... nice tutorial!
bleu ground I
Thank you so much, this is the best tutorial I have seen so far.
3 years later information is still good 👌 and comments are also helpful
If your complete level animation is continuously playing, untick the Loop Time box in the inspector.
Thx
@All For Magic | Magic Tricks Revealed Culling mode - Cull Completely
@@user-lz2qb5fh6o That didnt work on me
@@TheOfficialGoofyAhhDog Find the LeveleComplete animation clip found in project window and select it. Then you can find the Loop Time tick in inspector window
Can someone help me, after I complete my level, only the words fades in but the white background doesn't 8:12
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!
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
Those are the Tutorials you always wished to have right? =) Thank you so much!!!
Really Love your series
Thank you very much
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.
This guy should have about 1M subscribers..!
or more
What that is barlery anything. He should have 10000m
Agreed
He has 700k currently when I write this, we're close...
@@hunormagyar1843 he's at 811k now!
pretty cool, now it's 10:30pm and I'm here since 19 pm... so much fun fixing those damn mistakes
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.
I have turned on the notifications in hope that, just in case, Brackeys upload a new video, I shall be notified of it🥺
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
lmao true
It`s good to stay organized!
Thank you ur videos are really helpful and informative.
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.
Miracle man
thanks, I was having this problem xD
Can u help me, after I complete my level, only the words fades in but the white background doesn't 8:12
*googling* : How to like a video twice?
amazing tutorial bro
i added 5f every second after we reach 200f in distance and proud
haha. this course really helped me.
Fantastic tutorials,Thank you.
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!
Same. no idea wat to do
Same
just rewrite everything, I had an error so I just rewrote everything and it worked
@@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.
I know I'm late but you might have named your script and end trigger the same thing that was my problem anyway
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
wow so much content in 10min video. superb
Bro I littreally love u thanks very much for makin these tutorials
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
OMG THANK YOU, i spent like an hour trying to find out what i did wrong XD
Bless your soul!
5:59 "The anime duh"
Just how all i hear when he says "Game Manager" is "Gay Manager"
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...
Thank you very much for the tutorials.You are awesome
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
Thank you!! All I needed was to add "2D" to OnTriggerEnter. You saved me hours of research, haha.
Brackeys: remember to check "is trigger"
Me: yeah nah, i'll just spend an hour to figure out why it dosen't work
same LoL
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
smart.
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
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
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)
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!
lmao i have done the same i have space for flying and w for going really fast when flying
Same I coded w to jump, but you kind of just fly.
@@why8402 what's the code for the jump and fly? and if u know also about the stop
@@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.
Brackeys: AnimeDUH
Animator: Am I a joke to you?
same xd
Thank you so much. All i needed was collision enter. wow
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!
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?
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.
@mosspeltmintleaves Not all heroes wear capes! Thank you :)
i would not be suprised if you wear a big red cape, Thank you
You are all welcome! Glad I could help :)
Thanks so much! Was looking for this
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.
probably forgot to set the variable of gamaemanager as public
Did you save the codes and written the code correctly because I forgot to save.
drag the gamemanager object not script
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.
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.)
Extremely helpful video!
I still watch till the end of this series
"And the most fun part: Animation"
Well yes, but actually NO!
Animation was headache for me it took me like 2 hours to get it working(because I accidentally added a event)
@@ghouldrago360 im sitting for 2 hours because first it only show 0.01 second and now i cant put complete in the animation
I did it !!😅
@@dosui4609 Wow, Congratulations!
I made my player bop up and down :)
Love the tutorials but they're ridiculously fast. I have to pause and rewind so many times. Thank you for the help though anyways 😁
I made the obstacles spawn randomly as the player moved forward, instead of doing levels. Pretty fun!
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.
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?
That is the exact problem I'm having
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.
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
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:)
Thanks 🙏. You are breathtaking
edit. I forgot too disable the animation in Scene02 and I wasnt fiding the error.
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!😳
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.
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.
tysm!