Recent snippets

3D Blob Shadow
Gamma
A rigid shadow that helps shows your player's position, no shader required! Godot 4.x GDScript 3d graphics
Easy Sound Effects
Gamma
A simple node + resource to play sound effects from code Godot 4.4 GDScript audiostreamplayer sfx sound effects
ALT-Enter fullscreen toggle
zegenie
Make your game fullscreen toggleable by reacting to ALT+Enter Godot 4.x GDScript shortcuts input fullscreen
Basic Flocking (GPU Version)
Casual Garage Coder
Flocks of boids with basic behavior with basic obstacle avoidance Godot 4.4 GDScript behavior boids flock compute shader
Serializable class
petit-suisse
Class allowing to save typed variables in json text or bin formats Godot 4.x GDScript serialization saving
Basic Flocking (CPU version)
Casual Garage Coder
Flock of boids with basic behavior and spheres avoidance Godot 4.x GDScript behavior boids flock
RTS Camera 2D
xsist10
Provides a configurable basic RTS Camera 2D that supports zooming and panning. Godot 4.2 GDScript camera camera2d rts
Basic RTS camera3D
PapaPandaGames
a very basic camera3D controller for 3rd person cameras Godot 4.x GDScript camera3d controller UI
Auto-Updating CollisionPolygon2D
Keith Jones
GDScript tool class_name polygons
Procedural Vegetation using L-System
Casual Garage Coder
Using a stochastic L-System, we can generate simple vegetation consisting in branches and leaves Godot 4.x GDScript Procedural generation mesh l-system
Kelp Leaf Mesh Generator
Casual Garage Coder
Simple mesh generator for a kelp-ish leaf Godot 4.x GDScript mesh
Orbit Cam
Casual Garage Coder
Simple orbit camera management script with zoom Godot 4.x GDScript camera3d orbit zoom
Logging with severity and type
aterlamia
Logging that you can turn of or decide what severity or type you want to see Godot 4.x GDScript
On-screen FPS (frames per second)
PapaPandaGames
displays the current frames per second while running the game Godot 4.x GDScript debug fps frames
Assert references of exported properties of a Node
wchc
This method helps you identify missing references in @export variables Godot 4.x assert test export variable
Get children Nodes of specific Type
wchc
A type-safe method that will retrieve a child or children of specific Type. Godot 4.x GDScript traits interfaces type node
Positioning a pointer to off-screen objects
Keith Jones
We show how to position an "edge of screen" pointer from a source position to an off-screen target position with vector calculations. Godot 4.2 C# visible rect viewport canvastransform pointer
Basaltic Rock Mesh Generator
Casual Garage Coder
Generates a small shard of basaltic-like rock/crystal, with vertices and normals Godot 4.x GDScript mesh basalt
Crystal Mesh Generator
Casual Garage Coder
Generates a crystal shard mesh with UVs and normals Godot 4.x GDScript mesh crystal
2D Precision Platformer Controller
dragon1freak
Platformer controller with coyote time, jump buffering, controller support, and more! Godot 4.x GDScript controller platformer 2d
Blocky 3D Heightmap
Casual Garage Coder
Displays a simple heightmap using instanced meshes Godot 4.x GDScript multimesh instancing map
Basic Health Component
Zaura
Node-Based Health Composition Godot 4.x GDScript health component
SequentialQueue class for serializing events using Callable
theCubeMiser
Allows a streamlined way to add and run a series of Callable in a first-in-first-out sequence as needed. Godot 4.x GDScript utility
Mouse Drag Control
Casual Garage Coder
Stand-alone script for mouse drag management Godot 4.x GDScript mouse
X Patch Primitive Mesh
Casual Garage Coder
Generates a quad, facing +Y, where number of cells, scale and rotation can be set, and which triangles are X arranged Godot 4.x GDScript primitive mesh