Skip to main content

Godot - Setting Up Signals Between Different Scenes

·43 words
icysamon
Author
icysamon
Electronics & Creator
Table of Contents

Signal Source
#

signal signal_test

func _process(delta):
    if(true): # Set the condition for the signal to be emitted inside the if statement
        signal_test.emit() # Emit the signal
    return delta

Signal Target
#

func _ready():
    scene_source.signal_test.connect(on_signal_test)

func on_signal_test():
    # Write your code here
    pass