0 votes

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.
Particle Properties
What do I do?

asked Mar 1, 2019 in Engine by Cobra! (168 points)

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

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

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.