Grapple effects & particles & stuff :)
This commit is contained in:
parent
c290b1ce72
commit
421220e763
13 changed files with 203 additions and 61 deletions
13
Particles/Scripts/OneshotParticles.gd
Normal file
13
Particles/Scripts/OneshotParticles.gd
Normal file
|
@ -0,0 +1,13 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue