arrow dust particles UwU
This commit is contained in:
parent
863961cc92
commit
8212e44044
4 changed files with 82 additions and 1 deletions
|
@ -15,6 +15,15 @@ func _physics_process(delta):
|
|||
if Game.get_sector(global_position + cull_edge) != initial_sector:
|
||||
queue_free()
|
||||
|
||||
func _exit_tree():
|
||||
# make sure particles node sticks around until particles decay
|
||||
var particles = $DustParticles
|
||||
remove_child(particles)
|
||||
particles.global_position = global_position
|
||||
particles.emitting = false
|
||||
get_parent().add_child(particles)
|
||||
particles.get_node("DeathTimer").start()
|
||||
|
||||
#Wall Collision
|
||||
func _on_Area2D_body_entered(body):
|
||||
if body is TileMap or body is StaticBody2D:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue