1
Ask a Question / Having an issue with jumping on slopes
« on: April 08, 2022, 11:03:15 am »
So, in a platformer I am working on I am using the slopes behavior from the player control set by Luyren. Its the older one since we couldn't get the newer one that lets you build slopes one brick at a time to work. I am finding that there is a new issue though I am encountering.
From what I can tell, if the player character jumps in such a way that they have upwards momentum but moves forward through the line the slope generates, the player will pass though the slope, and fall. I am thinking a tweak to make the slope grab the player regardless of their Y-Speed if they go below the slope's target line would work, but I am not sure what to tweak to cause that to happen, as I don't want to accidentally make it prevent you from jumping instead.
From what I can tell, if the player character jumps in such a way that they have upwards momentum but moves forward through the line the slope generates, the player will pass though the slope, and fall. I am thinking a tweak to make the slope grab the player regardless of their Y-Speed if they go below the slope's target line would work, but I am not sure what to tweak to cause that to happen, as I don't want to accidentally make it prevent you from jumping instead.