+ 2
Please, how can I improve the buttons(touchhold) to move ball
4 odpowiedzi
+ 4
Here’s an example I put together: https://code.sololearn.com/W6FcoiC6zs1q/?ref=app
+ 4
While a joystick might be good, buttons still work, like in this game by Jingga Sona: https://code.sololearn.com/We2Y51lGO5YO/?ref=app
You can use setInterval() and clearInterval() to make it move left or right again and again, multiple times a second.
+ 2
Abat
I think a joystick would me much better.
Joystick to move the ball horizontally.
+ 2
Abat
See this game created by Rowsej which uses a joystick.
Implement something similar to this to move the ball only in horizontal direction.
https://code.sololearn.com/WaOeV41d37b3/?ref=app