Hey guys,
I'm making a simple 2D platformer, and I've got some code down, but there is an issue that I just can't seem to figure out. I have walking and jumping working on a flat, level surface. For jumping, I said that after jumping, if the character's Y-Value is less than or equal the ground's Y-Value, stop jumping. This works, but as I said, only on flat ground.
So basically, here are my two questions:
How could I check for the Y-Value of the ground of the slant and pass that value to the Y-Value of the character while simply walking up the slant?
How would I check to see where the character should stop falling when on a slant?
Any help is greatly appreciated. Thanks in advance!
Perhaps, I theoretically might possibly have potential to hypothetically maybe have the chance to attempt something.