Skip to content
Sign upLog in
← Back to Community

Collision detection problem

Profile icon
ia13ru

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
Profile icon
ia13ru
Comments
hotnewtop
Profile icon
[deleted]

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

Profile icon
ia13ru

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

Profile icon
[deleted]

@ia13ru
Well spotted!

Profile icon
migoyo

Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. เว็บแทงบอลที่ดีที่สุด

Profile icon
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?