Back with another edition to my 3rd person platformer unity demo, this time I bring you 2.5D Splines!
My splines system has a whole lot of stuff it can do and is simply added by dragging in and unpacking a prefab. Once in the scene, the spline runs in the editor. Here you can play around with it's shape and length as you please using waypoints and waypoint toggles. You can even change settings such as how detailed the curve is.
When playing the game, players can walk up to the spline, then will enter a nice transition to go from free-walking to being locked on the spline in a 2D style. Once on the spline you can only move left and right. Once reaching either end of the spline again, you pop right off.
My spline uses a rather strange locking system, with a few bugs like being able to move out of bounds of the spline from the start position, as well as jumping not staying in-line with the spline when moving as well as jumping, but the base concept is there. If I had time, I'd like to make a more refined version in the future.
For now, checkout the video below for a much more detailed look into the system, showing what it can do, and the code behind it!
Leave a Reply.
Hi, I'm Conrad Wilson. a Games Developer & university student at UWE Bristol.