+ 3

Switched Collision

Annoyingly the 4 way collision method Coder showed me isn't working out. Top and bottom are reversed and the whole thing just won't work. Exactly the same problem as last time, but this time, I can't notice a difference in my code and the solution. You can't jump once you hit the top https://code.sololearn.com/WjuHV2FIB48r/?ref=app

8th Jul 2019, 7:12 AM
Clueless Coder
Clueless Coder - avatar
5 odpowiedzi
+ 3
I can't find it 😂😂😂 edit: Bingo! Got it!
9th Jul 2019, 2:47 PM
Clueless Coder
Clueless Coder - avatar
+ 2
Don't understand. Please elaborate your issue in more details.
8th Jul 2019, 7:20 AM
Calviղ
Calviղ - avatar
+ 2
Coder Sorry to rush you
8th Jul 2019, 5:45 PM
Clueless Coder
Clueless Coder - avatar
+ 2
Coder What did you change? I thought I used the same collision structure in https://code.sololearn.com/WjuHV2FIB48r/?ref=app
9th Jul 2019, 12:43 PM
Clueless Coder
Clueless Coder - avatar
+ 1
Calviղ Line 179 is the collision method Coder showed me Line 150 is my attempt at implementing it When you land on the top of the platform it should console log top, but says bottom. This means the direction of the collision is reversed. When you land on top of the platform, despite setting jumping to false, it continues to disable the jump method. If you don't understand, I will wait for Coder to respond, it's fine if you can't help.
8th Jul 2019, 7:25 AM
Clueless Coder
Clueless Coder - avatar