From the course: Advanced Unity 2D: Platformer Player Movement

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Building a double jump effect

Building a double jump effect - Unity Tutorial

From the course: Advanced Unity 2D: Platformer Player Movement

Start my 1-month free trial

Building a double jump effect

- So now that we have our double jump working we're gonna add a little bit of an effect in order to let the player know that they've actually made a second jump while in the air. We'll have a dust puff animation which'll be a little cloud that'll expand and dissipate and we'll spawn it at the point of where we do our second jump. To get started, let's go in to our artwork folder and let's look for the dust puff animation. Here we'll select all the sprites and drag them in to the scene. Now we'll need to make a new animation inside of the animations folder. Let's save this as DustPuffAnimation, and let's zoom in. If we were to run the game we'll see the effect of the dust cloud appearing and then shrinking. The next thing that we're gonna want to do is have this actually destroy itself once the animation is done. Inside of our scripts folder, let's create a new folder and we'll call this Effects. Now inside of the Effects folder, let's create a new script, and we'll call this…

Contents