Signals not working after instantiating a packed scene in another scene.

Godot Version

4.2

Question

I am making a card game where my cards are a scene with Area2D as parent. I instantiate the scene into my game scene through code. The card has mouse_entered signal attached to it in its script, which works when i run the card scene alone. But after i instantiate it to the game scene the signals don’t work. I tried emitting a custom signal and connecting that to the game scene which too doesn’t seem to work. Any idea what is causing this?

Can you show your card-scene and the code where you instantiate them?

Sorry to bother. But it was a stupid mistake from my part. I had a ColorRect as a background and forgot to change the mouse filter on that. This was the issue with the mouse events not being detected. The issue is solved now

1 Like