particles delay

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tiernich
:warning: Old Version Published before Godot 3 was released.

I have a object with a particles system. when get hit. Fire the particles by setting emiting to true. But happens a second or so later. Code:

		if bodie.get_name() == "player":
	        print("hit")
	        get_node("explode_particles").set_emitting(true)

hit is printed, a long time passes, the particles are fired.

everything works fine for me, maybe it’s your settings. How long is the delay when you check the “Emitting” Config in the Inspector? Also, how are you getting the input?

batmanasb | 2016-03-22 16:41

here’s the test project I made, see if this works. Press space to fire the particles. Link using some random upload site

batmanasb | 2016-03-22 16:45

thanks for the reply! your project work just fine, i managed to work with Lukas solution to set explosiveness to 0.01.

tiernich | 2016-03-23 19:10

:bust_in_silhouette: Reply From: lukas

If you set explosiveness to 0 to have explosion effect, set it to value > 0, e.g. 0.01.

is set to 0. The particles act like i want but not in the right time. like i said, when set emmiting to true, after a second the particles fire, giving the delay. Thanks for the reply!

tiernich | 2016-03-23 17:08

So, did you try to set to 0.01?

lukas | 2016-03-23 18:47

hey! it work, i totally missed what you said(felling stupid right now :P), just left on 0, when i changed to 0.01 work! thanks man! why this happen?

tiernich | 2016-03-23 19:11

Sorry for my English :). I don’t know why does it happen. I consider it as a bug. Fortunately there is almost no difference between 0.0 and 0.01 ;).

lukas | 2016-03-23 19:20

Nothing wrong with your english. Where are you from?

tiernich | 2016-03-24 03:24

Czech Republic

lukas | 2016-03-24 08:06