Get the data from Area2D including it's position which was entered.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Aaruli

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:

Cards
-Area2D
--Sprite
--CollisionShape2D
-Focus (Used to focus on which card is in mouse.

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

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?

dacess123 | 2022-08-12 19:47