Holding touch

Anything libgdx related goes here!

Holding touch

Postby Alien94 » Mon Jul 23, 2012 2:10 pm

Hi,
I have 2 on screen buttons to move left and right the player in a 2d game.
I'm using BOX2D and with method touchDown i set a linear velocity to the player, and it works.
But if the user keep the finger on the button, the player moves like a single touch and i need that it moves more times.

How can i do it?

Thanks
Alien94
 
Posts: 34
Joined: Mon Jul 23, 2012 2:07 pm

Re: Holding touch

Postby Semtiko » Mon Jul 23, 2012 3:05 pm

Hi! Do you use scene2d to make buttons, or rectangles? It's normal if you are using boolean event for screen touches. Try read this thread.
Semtiko
 
Posts: 731
Joined: Tue Oct 18, 2011 9:03 am

Re: Holding touch

Postby Alien94 » Tue Jul 24, 2012 3:11 pm

Thanks!
Alien94
 
Posts: 34
Joined: Mon Jul 23, 2012 2:07 pm


Return to Libgdx

Who is online

Users browsing this forum: Google [Bot] and 4 guests