How can I check if there is a certain object in a certain location ?
I've tried with getObjectsAt, but that method returns a string of objects.
P.S. I know the X and Y coordinates.


1 | if (getObjectsAt(x, y, class ).contains(actor)) |
1 | if (actor.getX() == x && actor.getY() == y) |