I have a problem with my code at libGDX in Android Studio. I'm trying to have an object perform an action while I press the screen. If I let go, the previous action should be aborted and a second should begin. When I press again on the screen, the second action should stop again and start the first while I hold down.
I have unfortunately no idea how I should do this and the Internet there is unfortunately also no exact information about it. This also means that I have no code, which I can show as an aid position.
I would be very happy if someone has a solution, or can help me. :)
You can use this way:
Let me know if this helps..