Recent snippets
Event-based game logic
Chromazu
A simple, but powerful, singleton script handles global game events.
Cell Texture from a TileMapLayer and Coordinates
Keith Jones
You can obtain obtain a tile's texture as an AtlasTexture directly from the TileMapLayer
Blender-like SpinBox V2 (DragBox)
enderprism
A SpinBox-like widget with a slider, infinite dragging and exponential value editing!
Await multiple signals (for dialogs)
enderprism
A utility function to help work with dialogs.
Blender-like ranged SpinBox
enderprism
A Blender-like slider in which you can also type numbers!
EventBus
Gamma
It probably works for your version, put in globals, bada bing
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
Rolling cube
Kelvin van Hoorn
A code snippet for rolling a cube on its sides.
Easy Font Size Scaler
greenpixels
An autoload script that adds an easy adds dynamic scaling to all text in your project
Screenshot without freezing (more complex solution)
darkcanopy
An even more complex screenshot function that avoids the pipeline stall of get_texture.get_image()
Taking a screenshot without freezing (simpler)
darkcanopy
A screenshot function done on a separate thread so your game can save screenshots without lag
Easy Signal Disconnects
Dragon1Freak
Util function to disconnect all callables on a signal, or safely disconnect a callable from a signal
TileData color batch edit
jil-hue
Tool for quickly replacing colors in a monochrome TileSet
In-editor tool Texture2D into colors palette
jil-hue
Use this in editor to get a dictionary with all colors in a Texture2D and their amount.
First-person camera controls
darkcanopy
first person FPS camera controls using Basis with mouse sensitivity split into X and Y axis
Custom shotgun pattern
darkcanopy
shotgun pattern using biased curve2d 'plane' to project the pellets
Plaintext config
darkcanopy
.ini plaintext config file players can modify
2D Platformer Character Controller
PapaPandaGames
The controller contains the following features: short jumps, double jumps, coyote time and jump buffer
First-person headbobbing
darkcanopy
Headbobbing in first person in a horizontal figure 8
3D Blob Shadow
Gamma
A rigid shadow that helps shows your player's position, no shader required!
Easy Sound Effects
Gamma
A simple node + resource to play sound effects from code
ALT-Enter fullscreen toggle
zegenie
Make your game fullscreen toggleable by reacting to ALT+Enter
Serializable class
petit-suisse
Class allowing to save typed variables in json text or bin formats
RTS Camera 2D
xsist10
Provides a configurable basic RTS Camera 2D that supports zooming and panning.
Basic RTS camera3D
PapaPandaGames
a very basic camera3D controller for 3rd person cameras
