I have a screen (BaseScreen implements the Screen interface) that renders a PNG image. On click of the screen, it moves the character to the position touched (for testing purpo
To detect collision I use camera.unproject(vector3). I set vector3 as:
camera.unproject(vector3)
vector3
x = Gdx.input.getX(); y = Gdx.input.getY(); z=0;
Now I pass this vector in camera.unproject(vector3). Use x and y of this vector to draw your character.
x
y