Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | AlenV |
extends Node
signal score_updated
signal player_died
var score: = 0 setget set_score
var deaths: = 0 setget set_deaths
func set_score(value: int) -> void:
score = value
emit_signal("score_updated")
func player_deaths(value: int) -> void:
deaths = value
emit_signal("player_died")
Note: edited for code formatting. In future please use the “Code Sample” button to format your code properly.
kidscancode | 2020-02-24 15:15