I don't get do particles

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

I’ve tried this way:

func _on_Fireball_body_entered(body):

if "Enemy"  in body.name:
	body.vida -= 1
	if body.vida == 0:
		
		body.dead()
if "eye" in body.name:
	print (body)
	body.vida -=1
	if body.vida==0:
		body.dead()

func dead():

if scale > Vector2(1,1):
	get_parent().get_node("ScreenShake").screen_shake(1,10,100)
	$Explosion.emitting = true
	
$".".queue_free()

but it doesn’t work.

show an error message

What is the error message? Usually you can look at it to determine the root of the error.

Diet Estus | 2019-01-21 23:09

Can you share the project so we can test? or at least provide the error?

p7f | 2019-01-22 17:07