How to send emit signal when score label hits 20

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Renderz

I’m trying to get my score label to emit a signal when it reaches an integer of 20 so I can get a button to appear to allow the players to change scene. I’m new to game dev and having a hard time finding a solution to this.

:bust_in_silhouette: Reply From: k4gi

You can define signals like variables, and write code to emit them whenever you like. You can connect custom signals through the UI like normal ones.

signal my_custom_signal()

if score >= 20: