Two Signals, one isn't being received

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


This is may be a typo or somthing else, but I can’t see it - perhaps there is an easier way anyway.

I have a 2D Platform game with ladders.

The ladders are made up of an Area2D, Sprite and CollisionShape2D

When the Player enters the Ladder area I have signal that is sent to the Player script, it also passes a variable for the Player to be centered on the Ladder.

I also added another Signal for when the Player leaves the Ladder. The collision works, but the signal is not working in the Player script - my debug print is being generated.

:bust_in_silhouette: Reply From: Inces

The typo must be in connect() lines, that You didn’t show. You must ensure the string name of receiving function is correct as an argument in connect() funtion

After having a break from it, I noticed it was ‘self’ that I’d duplicated when it wasn’t required - oops!

JayH | 2022-07-13 14:48