How Using Scenes Correctly Can Improve Everything - Now You Know Too

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone my name is art Indy and I'm about to tell you what I think is the most important thing to know about Godot that rhymes wait that rhymes - Wow I'm a poet and I didn't even think I was if you are brand-new to Godot I think this will be very helpful to you if you're a master even been using a dough for just a little while you may already know this however I've been using Godot for about a year now and I didn't fully understand this till a few weeks ago when I did my first game gem ever if you want to watch a video about that you can all have a link to it in the in screen so here it is my biggest tip - you give everything its own scene now don't click away it give me a few seconds to explain who I think this is the most important tip for Godot in lots of tutorials online it seems this is glossed over I mean it's not emphasized enough now maybe I'm just a noob okay I am a noob but I watch a lot of tutorials and in most those tutorials they put the player in the scene and then they add enemies in the same scene then they add other things into the same scene and I always just assumed that scenes were basically levels and then you add stuff until you felt like you had a good level instead if you give every single asset its own scene and make structuring levels so much easier now when I say everything gets its own scene I mean everything like take this little C and I have here see the cowboy fire guy that I'm controlling he has his own scene that fireball in his hand got its own scene that tiki torch scene the cloud and the rain scene scene even the little points in the cloud that spawned rain have their own scenes see okay not much to look at here but I think you get the point also maybe using rigid bodies for raindrops is not the best idea I've ever had the reason you want to do this is because if you have any assets that will span throughout many levels this makes it super easy to edit them later all you have to do is go to the scene of the asset you want to edit change whatever you need to change and all the assets throughout your whole game will match your changes because they will be just instances of the asset scene and all you have to do to instance a sea into another scene is by right-clicking on the note he wanted to be a child of click on instance child scene then selecting the scene you want to instance and if you want to instance something dynamically through code just preload the desired scene into a variable like this you can pause the video here then at the point in your code that you want to make a new instance create a variable and assign it an instance of the scene then make that variable a child of whatever you want in this case it's the child of the raindrop spawner then from that point you can do whatever you want to it like reassigning its location or you know whatever you want structure in your game this way will make life so much better and it will make you happy in sight man this could make a cool snowplow minigame or something thank you so much for watching hopefully this will be helpful to you if you haven't been doing it this way give it a try it will really you know really help you out it's definitely changed the way that I work on games in my own games but but yeah let me know what you guys think and see you next time have a beautiful day
Info
Channel: Artindi
Views: 34,101
Rating: undefined out of 5
Keywords: Godot, Game, engine, artindi, nheve, instancing, instance, structure, good, best, tip, for, beginners, noobs, noob, how, to, tutorial, simple, most, important, thing, devlog, scene, scenes, using, #1
Id: 6ktDdjk1_Hs
Channel Id: undefined
Length: 3min 21sec (201 seconds)
Published: Sun Mar 29 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.