The instance of the Enemy, we added as a child to the PathFollow2D Node in the scene, does not add to the score when killed. The rest that are spawned on from the code work as intended, but the one we added to the PathEnemy scene does not. What would I do to fix it? add it as a child in code? that messed up the @Onready var we used to connect the signal.
is that the one that was originally created when we made the pathfollow enemy?
i think, personally, that if you delete it and let the path enemies be created via the timer it should all work as expected, like you said, they seem to work ok.
i think it comes down to the Die signal being connected when we spawn the path enemy and in turn that ties in with the points scoring.
which we changed to be more dynamic once we had the one single one tested.
So I was having the same issue. I realized that I instantiated the path_enemy scene as a child into the game scene instead of just letting the enemy spawner make them. Hopefully this is the same issue you’re having and I hope it helped!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.