+ 1
How can I move the lower brick in canvas using buttons?
Also, are there other way to move it like dragging or joystick? https://code.sololearn.com/W0b432551gKV/?ref=app
7 ответов
+ 4
Alquen Sarmiento , I have made a similar game before. I used touch events because it reacts faster than button clicks.
I hope this could help.
https://code.sololearn.com/W5SKO1x98R7h/?ref=app
+ 2
JonathanP Thanks for the idea. I'll study it first before implementing it.
+ 1
I deleted the animation for the lower brick. How can I move it efficiently?
+ 1
I tried adding function that add and subtract the value of x but Im having a problem with its scope.
+ 1
Leszek Nothing for a while
0
Don't animate lower brick. Code it reaction either to buttons or set listeners for keys on keyboard.
0
Does the buttons do anything?