GrappleTest/Particles/Scripts/OneshotParticles.gd

15 lines
253 B
GDScript3
Raw Normal View History

2024-02-27 11:27:54 -06:00
extends GPUParticles2D
var following = false
func _ready():
emitting = true
one_shot = true
await get_tree().create_timer(lifetime * 2).timeout
queue_free()
2024-03-17 21:56:16 -05:00
func _process(_delta):
2024-03-13 16:15:55 -05:00
if following:
global_position = get_parent().global_position