collision function broken again | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

collision function broken again

I made a collision function that tests the direction of a collision. It is reversed, has a massive offset, and top and bottom don't work. I tried replacing numbers, using different for loop, doing it in another order but it still won't work https://code.sololearn.com/WK23x01EHA19/?ref=app

10th May 2021, 3:44 PM
Clueless Coder
Clueless Coder - avatar
2 Answers
0
Mirielle Testing on specific sides. So if the player hits the top of the brick, it lands, if it hits the left or right then it dies.
10th May 2021, 4:26 PM
Clueless Coder
Clueless Coder - avatar
0
Mirielle there's a loading glitch where the images won't render the first time, if you run again it should work. The player can't move because it's meant to be geometry dash/chrome dinosaur remake. You can only jump. The brick is the red thing that slides along the bottom of the screen. Your meant to die if you hit the side but land successfully if you hit the top
10th May 2021, 6:56 PM
Clueless Coder
Clueless Coder - avatar