Skip to content

Instantly share code, notes, and snippets.

View nielpattin's full-sized avatar
🎯
Focusing

Niel Pattin nielpattin

🎯
Focusing
View GitHub Profile
@nielpattin
nielpattin / draw_history.gd
Last active May 26, 2023 04:20
A gdscript that use _draw() with @tool and timer and history variable to draw a line from left to right that remember last line instead of remove and draw a new line every _draw() call
@tool
extends Control
var history := [
Vector2(10, 10),
Vector2(10, 500),
Vector2(20, 10),
Vector2(20, 500),
]