Answers for "Godot emit signal in code"

1

custom signal godot

extends Node2D


signal my_signal


func _ready():
    emit_signal("my_signal")
Posted by: Guest on August-04-2020
0

godot connect signal code

extends Node2D


func _ready():
    $Timer.connect("timeout", self, "_on_Timer_timeout")


func _on_Timer_timeout():
    $Sprite.visible = !$Sprite.visible
Posted by: Guest on September-29-2020

Browse Popular Code Answers by Language