Skip to main content
added 48 characters in body
Source Link
user1430
user1430

How can I scroll sprites when swiping cocos2dusing Cocos2D?

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

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?

scroll when swiping cocos2d

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?

How can I scroll sprites when swiping using Cocos2D?

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?

Source Link

scroll when swiping cocos2d

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?