Side-scrollers with cocos2d-x

Side-scrollers with cocos2d-x
0.0 0


Hi, if you have to move a 2D character along a path that is not an horizontal line but a more complex path (with horizontal, diagonal, vertical and so on…)
how do you do that? Is there a ‘standard’ (‘preferred’ or ‘common’) way to do it with cocos2d-x?

For example, consider the following path:

A———B C’———D’

you start from A, move horizontally to B, then move diagonally to C then move horizontally to D OR, from B, jump on C’ and continue till D’ and so on…