+ 1
Can’t Detect When Player and Enemy touch
I’ve put a function to detect when two elements touch each other but it doesn’t work when I use the setInterval function because I can’t name the function itself but I need to put the function name so that it can know what piece of code to use to give me an output. https://code.sololearn.com/WLnr5wgm6sWe/?ref=app
2 Answers
+ 2
Your timer is not running the detection, I have form the detection function,and set the time to tun it instead.
https://code.sololearn.com/WqAngZaGQoAr/?ref=app
+ 1
Thank you so much! 👍💯💯
This was exactly what I needed for it to work!
Again, thank you!
Hot today
What's wrong? :(
1 Votes
Why won't my image display
0 Votes
How the answer is 50?
0 Votes
Number of Ones ( C++ ) question!
1 Votes