+ 4

Why this ball stops running?

As in question. please help. https://code.sololearn.com/WVEW5l3CdZJo/?ref=app

20th Jan 2018, 6:24 PM
Amadeus
Amadeus - avatar
2 Respostas
+ 1
Check your JS your actions don’t call a restart on subsequent clicks maybe consider a start button, stop button and a random function that bounces you off the edges and sends you in a random direction
21st Jan 2018, 2:00 AM
DCA
DCA - avatar
0
The question is unclear are you asking why it stops moving when you press the button again?
20th Jan 2018, 8:23 PM
Ole113
Ole113 - avatar