 This tutorial was brought to you by my patrons. Thank you so much for your support Hello there in this video Let's make a pop label a label you can instance in your game to display some damage or a score The final result will be like this So let's get started to achieve that we will be using a Node 2D it will be kind of a pivot for our label So I will rename that for pop label of course we'll be using a label as well so So that we can display the score or the damage or any message of course so just rename it this label and And finally we will also need a twin node to make the animations. So let's add a twin node And I will rename this to lowercase I will configure the snapping snapping settings here so that we can properly Set our all label in the center of the pivot here So I will drag this Here scale it let's use this Rect let's make this Yeah, and then Minus 16 so now we have it centered I will also set the the pivot offset to be on the center just to prevent any weird behavior and Let's make this centered on the align and centered on the via line. Let's just make some Placeholder text here. So yeah, now we have it. I'll drag it to the middle of the screen So we can test this properly. Now. Let's go to the script. So let's add a script here I believe this as pop-up dot gd I will start by exporting a vector to that will be the final or the pop No, I think that I will call this final scale by default. It will be a hundred 50% of the cringe scale. So it will Actually, it will scale just by half of its scale Let's also export a float That will be the float distance This will be the distance that The label will travel before its face fades out And also let's export a float var Duration this will be the reference for the the animations So let's Start by calling the red function and we'll call a pop Method which will be creating which will will creating here So the pop method here in the pop method will do the animation. So let's start by animating the scale so interpolate Property of self Scale we use the current scale and we will Multiply it Actually, we will use just the final scale final scale and let's Jump the line here use the duration and for the interpolating Transition I like to use trans back because it adds a little bit of punchy to the animation So I will use this and we use this for the in and out animation so Let's start the animation here Start We will wait for the the twin to finish the animation. So you would twin Completed then we will animate the position of the the label. So Twin dot interpolate property of self This object will go to the position and We will use the current position and we will oops position And I will jump the line here just so we have some more space And we will use the position the current position minus a vector of Actually, let's make an addition of a vector with the float this Zero because we won't travel. We won't travel any distance in the x axis But we'll do in the y axis. So let's add a negative float distance float Distance this will make the the label go towards the top of the screen And let's also use Transback so twin Let's add the duration Twin trans back and Let's add just on the is in and I will Jump the line here. Let's see. I like to keep this using the pipe eight So if we have enough space here for this No, we didn't we don't so jump here Also jump here and we are good to go close the parentheses and Let's also When we when the the label is moving towards the top of the screen will also Interpolate is modulation or it's modulate Because I want it to be transparent. So let's create a transparent color here It's equal to color One one One it will be White, but it will be transparent totally transparent Hey a small fix here I changed the transparent color to be the same as the modulate color But I set its alpha channel to be zero So this is truly the the same color of the the pop label, but transparent So you can now set this to be red to let's say pop up a Damage and it will interpolate between red and red with zero alpha Okay, so this is just a small parenthesis in the tutorial. I hope you enjoyed so Now we also tween The property interpolate property of self modulate and we'll get the modulate and We'll use this transparent for the final transparent We will also use just I think that we can use just a linear for the For the transition type, so let's just use linear and is in Let's start the twin Don't start and when it finishes, let's yield here for the twin To emit the finish shade Completed signal when it does we will delete this label delete this let's save this on let's save the scene and There we have it You can tweak with the the numbers here. So let's say if you want a greater Distance or a better timing a better duration and there we have it So this is it for this video guys I hope you enjoyed if you like it leave a thumbs up. I have to start doing this YouTube stuff like asking you for a subscribe if you're not subscribed leave a thumbs up Comment if you'll find out that this is useful for you I will put the the final result in the the description, but it is also attached to a patreon post and By the way, let's welcome the newest patrons Peter old hammer Ryan whited and Kishel Welcome and thank you so much for your support. That's it. That's all for now Thank you so much for watching keep developing and until the next time