Help, I am desperate | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 3

Help, I am desperate

I have been making a code. On line 143, it shows an error message, even though it has no indication why. I have tried almost everything to fix it, but still couldn't succeed. Please help :( https://code.sololearn.com/WZZqmUzplNfz

18th Jul 2019, 2:02 PM
Airree
Airree - avatar
4 Respostas
+ 5
I use debugger, found that PROJECTILES has 2 array elements, first one is a Projectile object, but the second element is an integer 0, which cause the undefined error.
18th Jul 2019, 2:35 PM
CalviÕ²
CalviÕ² - avatar
+ 5
Use debugger, it would help to pinpoint the problem.
18th Jul 2019, 2:45 PM
CalviÕ²
CalviÕ² - avatar
+ 3
CalviÕ² I cannot thank you enough. I was suffering for almost 2 hours now
18th Jul 2019, 2:43 PM
Airree
Airree - avatar