I'm currently trying to recreate flappy bird game. I've run into an issue where my score would only update after passing the first set of pipes (part of the main scene and not instanciated). I have an area_shape_entered signal on my pipes script to detect when my player scene enters the area that I set to emit the increase_score signal. Aside from the first set of pipes which are set in the main scene, every pipe after that is instanciated. I know the signal emits since it prints in the console but the score doesn't go past 1.
This is my code to increase the score:
func _on_pipes_increase_score():
var score = 0
score += 1
%PointsText.text = str(score)