Skip to content

Instantly share code, notes, and snippets.

View iRadEntertainment's full-sized avatar

Dario De Vita iRadEntertainment

  • Yellatch Games
  • Copenhagen
View GitHub Profile
@iRadEntertainment
iRadEntertainment / trail.gd
Created January 30, 2018 23:00
Godot Engine (GDscript) - 2D adjustable trail by Yellatch Games
#Draw trails with lines
#A NON-PERFECT SCRIPT FOR Godot v2.1.* *NOTE THIS SCRIPT STILL HAVE SOME REF ISSUES, CHECK FOR ERRORS IN THE DEBUGGER
#This script has to be attached to scene with only a Control Node
#This scene can be instanced as child of a moving node
#after that the code can be initialized calling scia_setup() func:
#arguments ( nuovo_oggetto = "the parent node reference goes here"
num_step = "number of steps (50 by default)
nuovo_colore = Color() (Opaque white by default)
nuova_trasp = Initial alpha transparency (adjust the formula for other fading effects)
[ [ 2, -5.0, -10.0 ], [ 2, -5.0, -5.0 ], [ 2, -5.0, 0.0 ], [ 2, -5.0, 5.0 ], [ 2, -5.0, 10.0 ], [ 2, -5.0, 15.0 ], [ 2, -5.0, 20.0 ], [ 2, 0.0, 20.0 ], [ 2, 5.0, 20.0 ], [ 2, 10.0, 20.0 ], [ 2, 15.0, 20.0 ], [ 2, 0.0, -10.0 ], [ 2, 5.0, -10.0 ], [ 2, 10.0, -10.0 ], [ 2, 15.0, -10.0 ], [ 2, 15.0, -5.0 ], [ 2, 15.0, 0.0 ], [ 2, 15.0, 5.0 ], [ 2, 15.0, 10.0 ], [ 2, -5.0, 25.0 ], [ 2, -5.0, 30.0 ], [ 2, -5.0, 35.0 ], [ 2, -5.0, 40.0 ], [ 2, 0.0, 40.0 ], [ 2, 10.0, 40.0 ], [ 2, 15.0, 40.0 ], [ 2, 20.0, 40.0 ], [ 2, 25.0, 40.0 ], [ 2, 30.0, 40.0 ], [ 2, 35.0, 40.0 ], [ 2, 40.0, 40.0 ], [ 2, 45.0, 40.0 ], [ 2, -5.0, 45.0 ], [ 2, -5.0, 50.0 ], [ 2, -5.0, 55.0 ], [ 2, -5.0, 60.0 ], [ 2, -5.0, 65.0 ], [ 2, -5.0, 70.0 ], [ 2, 0.0, 55.0 ], [ 2, 5.0, 55.0 ], [ 2, 10.0, 55.0 ], [ 2, 10.0, 50.0 ], [ 2, 10.0, 45.0 ], [ 7, 6.0, 50.0 ], [ 7, 0.0, 24.0 ], [ 1, 0.0, -5.0 ], [ 1, 0.0, 0.0 ], [ 1, 0.0, 5.0 ], [ 1, 0.0, 10.0 ], [ 1, 5.0, 10.0 ], [ 1, 10.0, 10.0 ], [ 1, 10.0, 15.0 ], [ 1, 10.0, 5.0 ], [ 1, 5.0, 5.0 ], [ 1, 5.0, 0.0