Skip to main content

Posts

Showing posts from March, 2023

Dynamic Blood Overlay Effects in Godot

Today we are going to talk about blood overlay effects in shooting games.  Video tutorial Text tutorial As you may have noticed, this visual indicator is a great way to show that the player is in low health or currently taking damage. However, the standard way of using a single image at the top of the screen can cause problems when the screen is resized, as the entire image gets stretched and distorted. To solve this issue, web developers have been using different images according to the size of the screen for a long time. In this tutorial, we will show you how to implement this technique in Godot. Firstly, we will use a canvas layer node for the root of the screen to ensure that it stays on top of everything. Then, we will add a texture rect node under it and set its anchor to cover the entire area. Next, we will add a script to the texture rect node and connect the item_rect_changed signal to it. This will trigger the function when there is a change in the screen size. Inside this fu

Create a Dynamic Full-Screen Particle System in Godot | Leaf Falling Overlay Tutorial

Visual effects, or VFX, are an essential part of game development if you want to keep players engaged. One of the most impressive visual effects you can create is a full-screen particle system, like the beautiful leaf falling overlay shown in this video. In this tutorial, you will learn how to create your own dynamic full-screen particle system in Godot. This method is flexible and will work on any screen size, so you can create stunning effects for your game no matter what device it's played on. To start, you'll need a leaf image and the Godot engine. Resource:  https://github.com/shashank1q/Godot-leaf_falling Open up Godot and create a new scene. Add a Particle2D node to the scene, and set the image in the texture property. Next, set the amount to 20 and the lifetime to 5 seconds in the time section. Uncheck the local coordinate option in the drawing section, and add a new particles material in the process material section. Now set these values to  particles material. Before