Recent snippets
Event-based game logic
Chromazu
A simple, but powerful, singleton script handles global game events.
Blender-like SpinBox V2 (DragBox)
enderprism
A SpinBox-like widget with a slider, infinite dragging and exponential value editing!
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
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
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
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!
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
Basic RTS camera3D
PapaPandaGames
a very basic camera3D controller for 3rd person cameras
Logging with severity and type
aterlamia
Logging that you can turn of or decide what severity or type you want to see
On-screen FPS (frames per second)
PapaPandaGames
displays the current frames per second while running the game
Assert references of exported properties of a Node
wchc
This method helps you identify missing references in @export variables
Get children Nodes of specific Type
wchc
A type-safe method that will retrieve a child or children of specific Type.
2D Precision Platformer Controller
Dragon1Freak
Platformer controller with coyote time, jump buffering, controller support, and more!
Basic Health Component
Zaura
Node-Based Health Composition
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.
Mouse Drag Control
Casual Garage Coder
Stand-alone script for mouse drag management
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
Geodesic Sphere Primitive Mesh
Casual Garage Coder
Implementation of a geodesic sphere based on icosahedron subdivision
