Collision detection problem
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.
Voters
TurboTurbojr
Im trying to add collision detection to my game so the guy can hit the other guy and he dies. But i cant figure it out someone help?
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
@malvoliothegood It turns out I named a variable the same as an object
@ia13ru Well spotted!