This is gonna be a bit hard to describe so bear with me haha. So I’m planning on making a 2.5D platformer, and the player will be controlled with your standard left and right movement, I understand that stuff.
However, many of those kinds of games also have moments where the character can walk along a curved path or something and they’re still controlled with left and right (ex. Classic Sonic in Sonic Generations, Donkey Kong Country Returns/Tropical Freeze, etc)
This video has examples of what I mean: Sonic Generations Sky Sanctuary (the platform section at 1:01, landing on the platform from 2:30 - 2:34, etc)
I guess my question is how I would do that? Not necessarily code-wise, more so just the logic behind it. If there are any existing guides about this kind of stuff, please let me know. Thank you!!