I want to know the difference between BezierBy and BezierTo. What happens in the code below if we say this is a script
CCBezierConfig bezier = new CCBezierConfig();
bezier.controlPoint_1 = CGPoint.make(1002.0f,475.0f);
bezier.controlPoint_2 = CGPoint.make(454.0f, 281.0f);
bezier.endPosition = CGPoint.make(-20.0f,490.0f);
CCBezierBy by = CCBezierBy.action(100, bezier);
CCBezierTo to = CCBezierTo.action(2, bezier);
CCCallFuncN actionMoveDone = CCCallFuncN.action(this,"spriteMoveFinished");
CCSequence actions = CCSequence.actions(by, actionMoveDone);
obstacle1.runAction(actions);
Also have the same problems in understanding moveTo and moveBy
Please help me with the concepts.
source
share