add animation to layer's path in cocos2d
- by greg rock
so i'm on cocos2d but before I was on a normal ios app and I had this code :
-(void)viewDidLoad{
rootLayer = [[CALayer alloc] init];
[imageView.layer addSublayer:rootLayer];
roundPath = CGPathCreateMutable();
CGPathMoveToPoint(roundPath, nil, center.x , center.y - 35);
CGPathAddArcToPoint(roundPath, nil, center.x + 35, center.y - 35, center.x +…