+ 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

13th Feb 2022, 9:01 PM
ElizabethM
2 Respuestas
+ 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
13th Feb 2022, 9:30 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar
+ 1
Runtime Terror But I think request... Makes it faster
13th Feb 2022, 9:46 PM
Chigozie Anyaeji 🇳🇬
Chigozie Anyaeji 🇳🇬 - avatar