Why (Uncaught TypeError: $div1.offset is not a function)? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Why (Uncaught TypeError: $div1.offset is not a function)?

Hello guys, I want create a 2D car game, where dogde obstacles that arrive from the top. In my program -> https://code.sololearn.com/Wxann6l3d3tJ/#js in JS, the function collision() doesn't work. The console return " Uncaught TypeError: $div1.offset is not a function Line:11. Why? What is it? Thank you

16th Jul 2018, 11:58 AM
Yuri Biasi
Yuri Biasi - avatar
2 Respuestas
+ 3
dx_button and sx_button variables doesn't exist Line 36
16th Jul 2018, 12:15 PM
Toni Isotalo
Toni Isotalo - avatar
0
OMG ahahaha you taught me a very useful basic! Thank you very much :)
16th Jul 2018, 12:22 PM
Yuri Biasi
Yuri Biasi - avatar