0 votes

I have a scene with an collision shape disabled by default, and when i call $Area2/CollisionShape.disabled = false, bodyentered works with the connect() method, but areaentered connected with the editor doesn't work.

in Engine by (157 points)

I cannot reproduce your problem. What exactly do you mean by "doesn't work"? Can you upload an example project? Note that the body_entered-signal will be only fired when a KinematicBody2D, RigidBody2D or StaticBody2D enters the Area2D, whereas the area_entered requires another Area2D to enter your Area2D.

Please log in or register to answer this question.

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.