Hey,
So i wanna check if my mouse pointer is over an area or a sprite. So i used the following
if (sprite.getBoundingRectangle().overlaps(Gdx.input.getX(), Gdx.input.getY()) {
// do something
}
But i can't use the mouse X and Y with overlaps it seems. My first solution for this was to create a rectangle at the mouse X and Y and whenever that overlaps with another rectangle it'll do what i want, but then i found this solution and it seems easier and faster. So which one to use and how can i fix this? .-.
Thanks:)