Recent snippets

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
Simplified value selector with progression indicator
Casual Garage Coder
Recreates Blender-like value selector in a very simplified way. Godot 4.x GDScript UI
In-game curve editor
Casual Garage Coder
One can edit curves in the Godot Editor, but not in-game. This script allows it. Godot 4.x GDScript UI Theme resource management
Grid displaying StyleBox
Casual Garage Coder
Whoever dealt with themes have encountered StyleBox at one point. Here is an implementation of a StyleBox displaying a grid Godot 4.x GDScript UI Theme
Image Steganography
Casual Garage Coder
Use the lower bits of an image pixels to hide/retrieve data. With that, one can share binary data as image instead of soulless data file. Godot 4.x GDScript Colors steganography data management
In-game Minimal Gradient Editor
Casual Garage Coder
Editing a gradient is not available outside the Editor. This snippet allows editing gradients in-app. Godot 4.x GDScript UI Colors
Custom Tooltip
Casual Garage Coder
Sometimes, you want more than a text tooltip. Using built-in popup, it is possible to do whatever you want as an advanced tooltip. 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
Fast Lakes and Rivers Computation for Small Terrains
Casual Garage Coder
Given a relatively small heightmap (128x128 to 256x256), compute the water distribution from a source to the borders of the map Godot 4.x GDScript terrain Procedural generation
Recursive File Browsing
Casual Garage Coder
Given a directory, recursively browse the files and apply a processing Godot 4.x GDScript utility
Monitor Layout UI
Casual Garage Coder
Users can have multiple monitors. Here is a custom UI node to display their layout. Godot 4.x GDScript UI
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
Twin Sticks Third Person Controller and Camera
Casual Garage Coder
Short (but versatile) script to control player movement and orbiting camera Godot 4.x GDScript camera controller gamepad
Stick Visualizer
Casual Garage Coder
A control node that displays a stick status/values Godot 4.x GDScript UI joystick gamepad
Capturing a Physical Input Event
Casual Garage Coder
This helper script capture an input event and translate it as a resource describing the said event. Godot 4.x GDScript input
Mapping Physical Event to Logical Event
Casual Garage Coder
Helper code to map a set of input events to logical events, with alternate mapping Godot 4.x GDScript input
Gamepad control layer
Casual Garage Coder
Capture the gamepad events, filter them and notify when it matters Godot 4.x GDScript input
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
Fishing Game Core Mechanic
Casual Garage Coder
Scene/Sub-Scene focusing on a linear precision minigame that can be applied to any linear precision game Godot 4.x GDScript gameplay fishing
2D Radial Menu
Casual Garage Coder
Very simple radial menu to be used in 2D context Godot 4.x GDScript UI