1
\$\begingroup\$

I'm adding 3 sprites (layers) to CCParallaxNode:

BGLayer = [CCSprite spriteWithFile:@"Layer.png"];
[_backgroundNode
    addChild:BGLayer
    z:2
    parallaxRatio:layer1Speed   
    positionOffset:ccp(screenSize.width/2,screenSize.height/2)
];

How can I create the scroll when swiping?

\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

Found it! Add the sprites or layers to a parralaxNode object and enable touch on your init method, Cocos2D will do the magic for you.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .