I have a scene with an Area2D at the root, and have created a signal for when the mouse enters the sprite. When I run the scene on its own, when I mouse over the Area2D, I'm able to generate a message in the log just fine:
extends Area2D
signal mouse_touch
func _on_Letter_mouse_touch():
print("Mouse touch")
func _on_Letter_mouse_entered():
emit_signal("mouse_touch")
BUT-- from my 'main' scene, I'm trying to connect the same signal to an instance of a scene, but the mouseover does work from the main scene, something like this:
var c = Letter.instance()
c.connect("mouse_touch", self, "_on_Letter_mouse_touch")
Is this not the proper way to handle this?
Thanks!
Bryan