• 2D
  • particles

im working in a effect like this when placing buildings, but i want something more futuristic

i make this with particles, (a little slower gif) recorded from exported game

but it seems not working good, you can see the last building doesnt show the particles correctly. This happens randomly.

when click for confirm the build, i just add a particles scene instance, emitting = true i am not sure whats happening

Maybe it's the z-index of the particles? It could be that, in certain situations, the building is drawn before the particles due to the Y-index/height and then it's not seen. I think if you increase the z-index value on the Particles2D node it will be visible.

fixed, i was sending the input (click confirm) many times and duplicating instances (buildings)... and looks the overlapping affect the visual particles or some like that

this not work as i expected

func _input(_event):
	if Input.is_action_just_pressed("click_left"): 
		get_tree().set_input_as_handled()
		queue_free() # why repeat input if f queue free
		get_parent().confirma_build()

works correct this way

func _input(event):
	if event.is_action_pressed("click_left"): 
		get_tree().set_input_as_handled()
		queue_free()
		get_parent().confirma_build()

@Zelta lol sorry this is off topic a little, can I play your game? Something about it makes me want to try it.

@Erich_L its non playable yet... i started coding a few weeks ago

@Zelta said: @Erich_L its non playable yet... i started coding a few weeks ago

I'm rootin on ya