How to create a "Falling Leaves" Effect in less than 5 MINUTES (Godot)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

That's helpful... but how are there leaves falling from coniferous trees?

👍︎︎ 3 👤︎︎ u/dnq-ink 📅︎︎ Apr 21 2021 🗫︎ replies
Captions
you're gonna add a falling leaves effect like this to your game in less than five minutes so let's get started i'm going to assume you already have a node which you want to have this effect placed on in this case i've got these trees which you probably have something similar to the first step is to create a leaf sprite or find one online i made this one in a sprite super quickly so you're going to go ahead and import that sprite into your game's resources i'm turning off the filter here because it's pixlr and the filter will make it look blurry once you have the sprite add a particle's 2d node to your scene tree create a new particle's material then scroll all the way down to the textures tab import your leaf texture there now we're ready to mess around with some variables the most important one is gravity it's going to tell the leaves to fall sideways as well as down i'm putting mine to 125 but you should tweak it and do whatever looks best to you after that we need to change the emission shape into a box that fits whatever you want the leaves to come from since i've got a large row of trees i'm gonna fiddle with this quite a bit until i'm happy with it i think that's good enough as you can see it's already coming together pretty nicely but there are some things we can improve upon we can change the initial velocity and add some randomness so that some of the leaves move quicker than others here i'm just doing the same thing i did to the initial velocity i'm tweaking it until it looks good then adding a bit of randomness now a really important thing to make this look good is by adding an angle curve that way the leaves rotate as they fall [Music] again i'm just adding some randomness so that no two leaves are the same it would take about half an hour to go over all these properties so i'm going to recommend that you fiddle with them on your own and learn a bit about what each one does [Music] finally personally i'd like to make the leaves get a little smaller over time and then fade out to do that we can add a scale curve that starts at one and then ends at zero [Music] we can also mess with the lifetime of the particles and the amount a bit but again this is entirely up to you personally i have the amount set to 10 with a lifetime of 2 seconds i think that's looking pretty good so i think we're done go ahead and subscribe if you want more videos like this and again thank you for watching
Info
Channel: TheDevDoc
Views: 1,382
Rating: undefined out of 5
Keywords:
Id: lmzjiMh6LLs
Channel Id: undefined
Length: 4min 10sec (250 seconds)
Published: Wed Apr 21 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.