0
Can you modify my code so it detects collision or when it touches object it shows game over?
Please help me guys. https://code.sololearn.com/WZx4G1kDYSUc/?ref=app
3 odpowiedzi
+ 1
This is what I was talking about
https://code.sololearn.com/W5eWW0wVNcM8/?ref=app
+ 2
I think it would take a lot of time for anyone to go through your code and modify it unless you explain what each component is doing ,but I would just say use left property of both elements you want to detect collision
If the block jumping left position property matches the left property for square shooting towards it here you have collision
0
More explanation needs I think I will wait for more ans