diff options
| author | Anson Bridges <bridges.anson@gmail.com> | 2022-09-07 14:07:30 -0400 |
|---|---|---|
| committer | Anson Bridges <bridges.anson@gmail.com> | 2022-09-07 14:07:30 -0400 |
| commit | c232b92e2dde1277324d1f89d0e75ae641e4ac3b (patch) | |
| tree | e11a5dd52f259c1cc7345baa40b372b304417f00 /godot/particles/p_Explosion.gd | |
| parent | a0967ebe815cd229b69fb9578f2288b95b2ddb28 (diff) | |
reorganized, ladders, vehicle control
Diffstat (limited to 'godot/particles/p_Explosion.gd')
| -rw-r--r-- | godot/particles/p_Explosion.gd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/godot/particles/p_Explosion.gd b/godot/particles/p_Explosion.gd new file mode 100644 index 0000000..f0cbd96 --- /dev/null +++ b/godot/particles/p_Explosion.gd @@ -0,0 +1,31 @@ +extends Spatial + + +# Declare member variables here. Examples: +# var a = 2 +# var b = "text" +var timer = 0 +#Vector3 +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +func init(position, norm): + global_transform.origin = position+norm*.1 + $outer_flash2.translate(norm*.3) + $debris1.process_material.direction = norm + $debris2.process_material.direction = norm + + $shock.restart() + $flame1.restart() + $outer_flash.restart() + $outer_flash2.restart() + #$smoke.restart() + $debris1.restart() + $debris2.restart() + +#Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if timer > 1: + queue_free() + timer += delta |
