Why are my particles so inconsistent?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Cobra!

I’m trying to add Gun sparks to my game, however, it only emits half of the time I shoot.

Here’s the code I’m using:

#Particle Code
func activate(newTransform):
translation = newTransform.origin
transform.basis = newTransform.basis
$particles.emitting = true
#$particles.emitting = false

#Gun Code

func shoot():
	ammo -= 1
	emit_signal("gunSparks", $Armature/Skeleton/Gun/Position.global_transform)

Here are the set parameters for the particles.

What do I do?

Have you tried increasing the lifetime? Maybe they died so fast that you didn’t get the chance to see them. Just a guess.

SIsilicon | 2019-03-02 11:57

That seems to help a little bit… is there a way to reset a particle?

Cobra! | 2019-03-02 18:29