Recent snippets

Event-based game logic
Chromazu
A simple, but powerful, singleton script handles global game events. Godot 4.x GDScript bus event singleton
Blender-like SpinBox V2 (DragBox)
enderprism
A SpinBox-like widget with a slider, infinite dragging and exponential value editing! Godot 4.x GDScript UI
Blender-like ranged SpinBox
enderprism
A Blender-like slider in which you can also type numbers! Godot 4.x GDScript UI
EventBus
Gamma
It probably works for your version, put in globals, bada bing Godot 4.x GDScript
Godot and Third Party Credits Script
darkcanopy
A Credits class that takes the official Godot license url (which is accepted as proper credits) and allows you to click it ingame, as well as read third party licenses from text files and populate the file Godot 4.x gdscript class_name license credits
Taking a screenshot without freezing (simpler)
darkcanopy
A screenshot function done on a separate thread so your game can save screenshots without lag Godot 4.x GDScript functions
Easy Signal Disconnects
Dragon1Freak
Util function to disconnect all callables on a signal, or safely disconnect a callable from a signal Godot 4.x GDScript Signals utility
First-person camera controls
darkcanopy
first person FPS camera controls using Basis with mouse sensitivity split into X and Y axis Godot 4.x GDScript first-person
Custom shotgun pattern
darkcanopy
shotgun pattern using biased curve2d 'plane' to project the pellets Godot 4.x GDScript functions
Plaintext config
darkcanopy
.ini plaintext config file players can modify Godot 4.x GDScript functions
First-person headbobbing
darkcanopy
Headbobbing in first person in a horizontal figure 8 Godot 4.x GDScript first-person
3D Blob Shadow
Gamma
A rigid shadow that helps shows your player's position, no shader required! Godot 4.x GDScript 3d graphics
ALT-Enter fullscreen toggle
zegenie
Make your game fullscreen toggleable by reacting to ALT+Enter Godot 4.x GDScript shortcuts input fullscreen
Serializable class
petit-suisse
Class allowing to save typed variables in json text or bin formats Godot 4.x GDScript serialization saving
Basic RTS camera3D
PapaPandaGames
a very basic camera3D controller for 3rd person cameras Godot 4.x GDScript camera3d controller UI
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
2D Precision Platformer Controller
Dragon1Freak
Platformer controller with coyote time, jump buffering, controller support, and more! Godot 4.x GDScript controller platformer 2d
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
Geodesic Sphere Primitive Mesh
Casual Garage Coder
Implementation of a geodesic sphere based on icosahedron subdivision Godot 4.x GDScript mesh primitive