Platforming Changes
by fobwashed
I've made some significant changes to the way platforming is handled in my game. This came about because I wanted to have items that the player could jump over but that wouldn't cause the player to change platforms to a higher level. I came up with two ways to handle this (I've come to learn that anything you want to do, there are just countless ways of doing it) and after putting both through...
I've made some significant changes to the way platforming is handled in my game. This came about because I wanted to have items that the player could jump over but that wouldn't cause the player to change platforms to a higher level. I came up with two ways to handle this (I've come to learn that anything you want to do, there are just countless ways of doing it) and after putting both through some trials, I went with the method I've got now. Basically, if there is something you can jump over but you can't land on, once you get to a height where you no longer are high enough to be jumping over it, you will be moved away from the center of the object till you are outside it's natural bounds. This works really well with the level editor and I've got hooks so that if I wanted to, I can move the player in a specific direction when this occurs if the level calls for it.
I'll prolly post a vid about this later this weekend once I get some more changes in. I didn't think it was necessary to make a vid just to demonstrate this small thing so I'll be back later on when I've made some more progress.
In doing this, I actually ended up cleaning up the platforming code a good amount and I think it should run faster than before as well.