Tag Info

New answers tagged


Before using the coordinates of your touch event, you need to scale them to your camera dimentions. You can try this code : OrthographicCamera cam; Sprite sprite; // your sprite Vector3 touchPos; // creates a vector3 object for our touch event touchPos = new Vector3(); cam = new OrthographicCamera(); cam.setToOrtho(true, 250, 120); public void ...

Top 50 recent answers are included