I have a problem that I can’t solve on my own, maybe someone knows the solution.
What I have:
I use 2 buttons in the app.
When I touch down button 1, action 1 is running.
When I touch down button 2, action 2 is running.
But if I touch down button 1 and then touch down button 2 (until button 1 is released) action 2 does not running (because button 2 does not respond to pressing).
How to implement simultaneous operation of buttons (is it possible)?
The main goal:
The two buttons I’m talking about are the buttons for controlling the movement of the sprite (the Right button and the Left button). During dynamic gameplay, it often happens that the Player presses 2 buttons at a time and the button that was pressed last does not work. This is a problem I need to solve.