I'm currently working on a third-perspective 3D platformer but for some reason, the player billboard thinks it's standing on a 3D block when it isn't.
In this screenshot, the space bar has been pressed and for some reason, the player is at the same Z elevation as the platform on the right. This gives off the illusion that the player is floating when it shouldn't.
The events for gravity and whether the player billboard is on the blocks or not are here.
I really need help as I don't know how to fix this.