The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I have this Space ship and i want it to reach a point and when it reaches, a panel with a text should show a text YOU WIN but the problem is i dont know how to make a area 2D detect the SpaceShip(kinematicBody2D) and show the text

both have collision shapes

i already have all the nodes ready but im lacking the information to make one react to another

i have just one script code, the 8 way movement of the tutorial

in Engine by (35 points)

1 Answer

0 votes
Best answer

You'll need to connect a body_entered signal from the Area2D to the KinematicBody2D.

You can do that by accessing the "Node" tab when the Area2D is selected

Node tab

From there, you right click the body_entered signal and then "Connect"

Right clicking the body_entered signal

After that, a dialogue box will appear, wherein you can select the SpaceShip node

Connect Signal dialogue box

Clicking "Connect" button on the bottom will create a new function, in this new function you can do whatever you need pertaining to the victory state.

Function that executes when the spaceship and the area meet

by (88 points)
selected by


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.