0
votes
1answer
73 views

my movement is working good on keyboard but on android its not

So basically here is what my movement is like for keys: key down if (keycode == Keys.LEFT) { mishi.getAcceleration().x = -13; } key up if (keycode == Keys.LEFT) { ...
1
vote
1answer
482 views

GestureListener's fling method doesn't get called

I'm using SimpleGestureDetector from the libgdx-users Wiki as my InputProcessor. I set it in the created() method: Gdx.input.setInputProcess(new SimpleDirectionGestureDetector(charController)); ...
1
vote
1answer
274 views

Precise Touch Screen Dragging Issue: Trouble Aligning with the Finger due to Different Screen Resolution

Please, I need your help. I'm trying to make a game that will drag-n-drop a sprite/image while my finger follows precisely with the image without being offset. When I'm trying on a 900x1280 (in X ...
2
votes
3answers
4k views

On screen controller for libgdx games?

Does anyone know a better controller for 2D Games than a virtual on screen joystick? The pros of the joystick are: Easy to implement for developers Familiar interface for users But there is a ...
0
votes
1answer
3k views

How to know if an actor is touched in libgdx?

I am using "Gdx.input.isTouched()" in the render method of my Screen method, to know where is touched, but when the touch is dragged in the screen, it also activates the events i want only when an ...