Hello
I am making a card game similar to hearthstone, very basic of course, and I ran across a problem when I try to determine if a player is dragging his card on top of another to attack it.
if(player.myTurn() && player.cardOnTable(this) && Greenfoot.mouseDragEnded(this) && counter == 1){ //card owner's turn && the card is currently on his table && card has spent at least 1 turn on table
Actor target = getOneObjectAtOffset(mouse.getX(), mouse.getY(), Actor.class);
target is always null, I have tried it with offset coord but it stays null
Actor target = getOneObjectAtOffset(xOffset, yOffset, Actor.class);
any ideas how to get it working?

