N
NoFontNL
Guest
I'm creating a platformer and added slopes using Shaun Spalding's slope code.
The problem here is, it automatically moves you up when you are going to collide with a slope, and you will move diagonally with the same speed as if you were on the ground and only moving horizontally. This means you will travel more distance when going up / down a slope than when you only move horizontally, but it should be less.
Is there a way, to detect when you go up a slope (not just standing on a object called slope, but litterally going up and down) and then setting the movespeed accordingly?
The problem here is, it automatically moves you up when you are going to collide with a slope, and you will move diagonally with the same speed as if you were on the ground and only moving horizontally. This means you will travel more distance when going up / down a slope than when you only move horizontally, but it should be less.
Is there a way, to detect when you go up a slope (not just standing on a object called slope, but litterally going up and down) and then setting the movespeed accordingly?