DNESS / cocos2d-iphone

Automatically exported from code.google.com/p/cocos2d-iphone
1 stars 0 forks source link

consecutive CCBezierTo actions in a CCSequence #1477

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
ccBezierConfig bezier1;
 ccBezierConfig bezier2;

 bezier1.controlPoint_1 = sprite.position;
 bezier1.controlPoint_2 = ccp(300, 200);
 bezier1.endPosition = ccp(200, 150);

 bezier2.controlPoint_1 = ccp(200, 150);
 bezier2.controlPoint_2 = ccp(100, 100);
 bezier2.endPosition = ccp(0, 150);

 id move1 = [CCBezierTo actionWithDuration:2 bezier:bezier1];
 id move2 = [CCBezierTo actionWithDuration:2 bezier:bezier2];
 [sprite runAction:[CCSequence actions:move1,move2, nil]];

The CCSequence works, the animations are smooth with the exception that there 
is a pause (half a second) between the two CCBezierTo.

What is the expected output? What do you see instead?
The movement of the sprite should be smooth, rather there is a pause between.

What cocos2d version are you using ?
cocos2d-iphone v2.0-rc1, v2.1 beta2

What iOS / Mac SDK are you using ?
iOS 6.0

Debug or Release ?
Debug

Which target device / target OS are you using ?
iphone

iOS only: Does this happens on device ? or on the simulator ? or on both ?
primarily tested on iphone

Mac only: x86 or i386 ?

Please provide any additional information below.

Original issue reported on code.google.com by pntki...@gmail.com on 29 Mar 2013 at 1:07

GoogleCodeExporter commented 9 years ago

Original comment by ricardoq...@gmail.com on 29 Mar 2013 at 3:15