GrappleTest/Particles/Scripts/OneshotParticles.gd
2024-03-13 16:15:55 -05:00

15 lines
252 B
GDScript

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):
if following:
global_position = get_parent().global_position