Ask coding questions

← Back to all posts
Collision detection problem
ia13ru (43)

I am having problems with code which is detecting collision.
All JavaScript(which is most likely where the problems are) is in script.js.
I apologise in advance for the large block of code and not giving you much input in which lines to check.

Answered by malvoliothegood (845) [earned 5 cycles]
View Answer
Comments
hotnewtop
malvoliothegood (845)

What collision are you talking about?
You may find it helpful to look at the code in this game I made some time ago: https://replit.com/@malvoliothegood/banana-game#index.html

ia13ru (43)

@malvoliothegood It turns out I named a variable the same as an object