G
goosegooseduck
Guest
Hey friends! Disclaimer - I'm fairly new to GML.
I've been trying to get platforming to work in a 2D, top-down game. I've looked at a few tutorials from a few different YouTube sources, but primarily this one by Backspace Cadet:
It works some of the time, but if you look at the images, you'll see my problem.
For reference - the green blocks have a 'z' value of 8, and the purple have a 'z' value of 16.
When the player (orange) approaches the purple block from the bottom (A) or from the bottom while on top of a green block (B), the collision works fine. But when the player approaches from the TOP of a green block from the LEFT (C to D), it crosses into the purple block.
The interesting thing is, I downloaded Backspace Cadet's actual project file, and it has this problem. Maybe I'm just too much of a noob to be able to troubleshoot this, but I'm hoping that the fact that the original project file experiences the same glitch means it can be fixed...
Thank you for reading.
I've been trying to get platforming to work in a 2D, top-down game. I've looked at a few tutorials from a few different YouTube sources, but primarily this one by Backspace Cadet:
It works some of the time, but if you look at the images, you'll see my problem.
For reference - the green blocks have a 'z' value of 8, and the purple have a 'z' value of 16.
When the player (orange) approaches the purple block from the bottom (A) or from the bottom while on top of a green block (B), the collision works fine. But when the player approaches from the TOP of a green block from the LEFT (C to D), it crosses into the purple block.
The interesting thing is, I downloaded Backspace Cadet's actual project file, and it has this problem. Maybe I'm just too much of a noob to be able to troubleshoot this, but I'm hoping that the fact that the original project file experiences the same glitch means it can be fixed...
Thank you for reading.