Some vertical Collision Debug


OK, i've messed up with some vertical collision where the case is

when i put some box/platform above another platform e.g in the video we see BOX 5 is above BOX 1

the player will fall when stepping into X coordinates where BOX 5 and BOX 1 intersects

these occurs because when im checking for vertical collision i did it form BOX 1, BOX 2,..to BOX 5 with x coordinates 

so to fix these i do it in reverse manner where im checking vertical collision from highest box

just reversing the iteration code, and it works

Get Rayblade Chronicles

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.