10-19-2014, 01:53 PM
I'm currently hacking about/toying with making a 2.5D platformer using curvy splines to create the path for the player to follow.
So far I've put together a control system that moves the player horizontally on the spline and uses a modified version of the Endless Runner example to allow the player to jump and connect to new splines if there is one above them or if they fall off one spline path onto another.
However I'm stumbling on how to set the controller up so that the player can jump from one end of a spline onto another i.e. across a horizontal gap between two separate splines. At the moment my control system stops the player at the end of the spline and doesn't allow the jump to continue beyond the last control point. My current idea is to have the player object break it's connection to the spline it has just been on while somehow continuing to move in the direction of the jump and searching for a new spline below the player object to attach to.
I was just wondering if anyone had a better idea or suggestion on how to implement a system for handling jumping between splines or had an implementation that they could share.
So far I've put together a control system that moves the player horizontally on the spline and uses a modified version of the Endless Runner example to allow the player to jump and connect to new splines if there is one above them or if they fall off one spline path onto another.
However I'm stumbling on how to set the controller up so that the player can jump from one end of a spline onto another i.e. across a horizontal gap between two separate splines. At the moment my control system stops the player at the end of the spline and doesn't allow the jump to continue beyond the last control point. My current idea is to have the player object break it's connection to the spline it has just been on while somehow continuing to move in the direction of the jump and searching for a new spline below the player object to attach to.
I was just wondering if anyone had a better idea or suggestion on how to implement a system for handling jumping between splines or had an implementation that they could share.