14 lines
236 B
GDScript3
14 lines
236 B
GDScript3
|
extends GPUParticles2D
|
||
|
|
||
|
var following = false
|
||
|
|
||
|
func _ready():
|
||
|
emitting = true
|
||
|
one_shot = true
|
||
|
|
||
|
await get_tree().create_timer(lifetime * 2).timeout
|
||
|
queue_free()
|
||
|
|
||
|
func _process(delta):
|
||
|
global_position = get_parent().global_position
|