Tag: 2d
-
Shooting (Throwing) in Platformer 2D
We have an existing player character; we want to make him fire at enemies, or throw projectiles. This Godot 4 recipe solves this problem. Straight-line vs Parabolic Some objects such as rocks, daggers or arrows should follow parabolic path (under the influence of gravity). But sometimes we are not looking for realism and so we…
-
Making Platformer Player Movement 2D
You want to create a character & move it with code. For 2D platformers. This recipe aims to solve this problem. Making a character In Godot, create a scene with CharacterBody2D as its root. Add a Sprite2D (or AnimatedSprite2D) nodes as its child. Also add collision shape. Overall setup should look like this: Motion mechanics…
-
Make Fireball Shader in Godot
Another fire shader for project I was working on. Tutorial will be updated later. I originally took it from this shadertoy and modified it. Shader Code Thank you for reading <3
-
Noise Functions
In a Nutshell Noise functions are used to add variation. It is useful for making procedural oceans, terrains, forests & vegetations and so on. 1. White noise 2. Value noise 3. Perlin noise 4. Voronoi (Worley) 5. Fractal Brownian Motion White Noise White noise is one of the simplest of the noises, made up of…