db0 / godot-card-game-framework

A framework which comes with prepared scenes and classes to kickstart your card game, as well as a powerful scripting engine to use to provide full rules enforcement.
http://dbzer0.com/projects/godot-card-game-framework/
GNU Affero General Public License v3.0
907 stars 96 forks source link

Overlapping cards on the table sometimes don't focus right #75

Closed db0 closed 3 years ago

db0 commented 3 years ago

This happens when cards have been moved from table position to table position. This is caused by godotengine/godot#44138

Until that is fixed, maybe we can think of a workaround.

One thing that comes to mind is have a 1pixel area2d on the mouse cursor, and use the same approach as the targetting arrow which uses sort_index_ascending() to figure it out. But I suspect this will involve some refactoring.