How do I code a spline path?


I’m trying to create a spline path as seen in the link below but trying to find the fomular to use has been the most difficult aspect since I don’t know how to interpolate the points. The spline will be used to create a path for a game I’m making were I need objects to follow such a path (is sonething a bit similar to zuma deluxe: ).

Plus what code could I use to generate such a path.

There is a lib called SGcore - there is a demo version available for download. It contains spline functions. Just keep in mind you need at least 3 points to define a spline using that lib.