I'm developing a 2D game using Cocos2d-x.
Is possible to use
CCBezierTo to parameterize a sine function?
You could create a Bézier curve that matches a sine (read this article for an example). Creating a Bézier curve from a sine, just to feed into
CCBezierTo seems like a very counter-intuitive way of doing things though.
I would skip
CCBezierTo entirely and update the position of your sprite yourself. You could do so in your update method or implement a
CCAction yourself. The easiest form of movement would be to increase
x constantly (or with a decaying value to simulate some sort of drag) and use the sine function to calculate