0 votes

Hi,

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.

enter image description here

enter image description here

Godot version 3.4.4
in Engine by (81 points)

1 Answer

0 votes

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

by (7,925 points)

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

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.