This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm new to Godot, and I'm stuck here. I watched a yt video which he used area entered. Here's what i did:
- added a area2D as a child of the player
- added a collision as the area2D's child
- then in the nodes/signals tab i connected area2D to the player's script
- it automatically took me to the script in which a function is already entered.

func _on_SwordAttack_area_entered(area):

I placed the area2D's collision lower than the player's collision, so from my understanding It should print "OOY" when he player just touches the ground. Or is that not how it works? Should i send what's written in the whole script?

Godot version v3.4.4 standard
in Engine by (24 points)

1 Answer

0 votes
Best answer

Is your ground an Area2D? Because you connected the area_entered signal, which fires when another area enters.

If your ground is a body (more likely), then you need to use the body_entered signal.

by (22,191 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.