Hello. I am new to the godot engine and I am trying to set the particles to emit when the player enters the body of the enemy. This is my code:
Health -= 20
if body.name == "Player" or body.name == "PlayerCollider" or body.name == "PlayerArena":
explosion.emitting = true
if explosion.emitting == false:
And the part where I loaded the 'explosion' scene is:
var explosion = load("res://Particles.tscn").instance()
What am I doing wrong and why is the particle not emitting when the player goes into the enemy?