0 votes

Hi all,

I have a solitaire game I am working on, and need to find a way to get the card which is under the current chosen card. My card is an Area2D instance with a sprite and collision shape. I have signals so I get the cards name which currently in mouse, instead of the card it is on top of.

Here is the tree:

-Focus (Used to focus on which card is in mouse.

Let me know if further info is needed, and thanks for the help!

Godot version 3.4
in Engine by (17 points)

So are the cards in some kind of stack? Is the card physically added to the scene? If it as then it must be added as a child of some parent. Could you give some more info?

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.