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?

in Engine by (171 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.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.