How to use object collision in a game? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to use object collision in a game?

Hey, im trying to make a little game.. But ill need to make object detection for the walls, but i cant get it too work.. https://code.sololearn.com/W9LodTtqQmyn/#js This is a code that works in https://codepen.io/zer0/pen/JxxYgQ but not in sololearn, can anyone help me with how thats possible?

4th Jul 2019, 5:04 PM
mine
mine - avatar
1 Answer
+ 1
It's working in Sololearn for me. Have you completed the JS tutorial?
4th Jul 2019, 8:56 PM
Chris Coder
Chris Coder - avatar