+ 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
8 Answers
+ 3
I can't find it đđđ
edit: Bingo! Got it!
+ 2
Don't understand. Please elaborate your issue in more details.
+ 2
Coder Sorry to rush you
+ 2
Coder What did you change? I thought I used the same collision structure in
https://code.sololearn.com/WjuHV2FIB48r/?ref=app
+ 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.