
I use a timer for the scoring system. when a player dies (queue_free) the timer doesn't stop. How to solve this problem ?
extends CanvasLayer
func _ready():
Global.current_score = 0
func _on_ScoreTimer_timeout():
Global.current_score += 1
func _process(delta):
$WorldScore.text = "Score : " + str(Global.current_score)