0 votes

Hi,
I have a main scene with an Area2D as a player and I generate random itens that are scenes with Area2d too.
I've set the area entered event of a player. He recognize the colision correctly.
But if i define an Node2D as a root of item instead the Area2d (Like Node2D->Area2D->...) the player don't recognize the colision more.

Why I try to put the Area2D inside the Node2D?
Because I want to animate the position of item relactive to the main scene. I want this because I manipulate the moviment of item dinamcaly in the main scene.

in Engine by (171 points)

1 Answer

0 votes
Best answer

Solved!
I create a aux variable to sum in position.y and animate the variable instead the position.

by (171 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 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 webmaster@godotengine.org with your username.