+ 1
Moving with buttons
I wrote this code move a circle when a button is pressed, but I’m pretty sure I messed up because it only moves every few times the button is pressed. Sometimes it does, but it’s kinda glitchy. Is something wrong or out of order?(I haven’t added collision detection yet) https://code.sololearn.com/WmvrFl2cJ625/?ref=app
2 Réponses
+ 1
Its fine and works normal
But you have to set user-select to none from css by adding
user-select: none;
In the button styling
+ 1
Runtime Terror But I think request... Makes it faster