From 88258e3b8d8e25ad4119e832fbece200c6b68ebd Mon Sep 17 00:00:00 2001 From: zaknafean Date: Mon, 15 Feb 2021 10:39:37 -0500 Subject: [PATCH] Fix for Fake Particles visiblity added visibility toggles to cover case where transparency on a sprite lets you see pre explosion particles in fake_explosion_particleds.gd --- fake_explosion_particles.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fake_explosion_particles.gd b/fake_explosion_particles.gd index e68b5e7..10117db 100644 --- a/fake_explosion_particles.gd +++ b/fake_explosion_particles.gd @@ -50,7 +50,7 @@ func _ready(): particles_timer.connect("timeout", self, "_on_particles_timer_timeout") add_child(particles_timer, true) - + visible = false if start_timer: particles_timer.start() @@ -58,7 +58,7 @@ func _process(delta): # If there are particles in the particles array and # 'particles_explode' is 'true', make them explode. if particles.size() > 0 and particles_explode == true: - + visible = true _particles_explode(delta) # Redraw the particles every frame.