Moving with buttons | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 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