0

how to make the subsequent times start the animation when you click on click me?

https://code.sololearn.com/W47jax1o2sF9/?ref=app

31st Mar 2019, 6:29 AM
Just Sky
2 Respostas
+ 1
It's already 23:30 here, so I'm a bit tired... What exactly is the purpose of your code? What should the help button do? I don't understand it. Maybe you should put the setInterval and clearInterval out of your main function... Now, does your code work as you expected it to do? If yes, I will inspect it and see what can be done. If not, could you please describe what should happen.
31st Mar 2019, 9:42 PM
Pete Wright
Pete Wright - avatar
0
Hi goal: do not let the cube get to the bottom corner. when you click on the "help" button, it stops it. "click me" to start the cube. After one win, nothing starts.
1st Apr 2019, 5:14 AM
Just Sky