I’ve seen many tutorials but not similar with what I’m trying to build…
Creating a parallax view with 3 sprites (background, layer 1, layer 2)
//Adding a like this
CCSprite *sprite = [CCSprite spriteWithFile:@"spriteImage.png"];
sprite.anchorPoint = CGPointZero;
[self addChild:sprite z:-1]; //and chaining the z's value for each sprite
How I implement the scroll of the screen and the sprites would move with different speed?
Any suggestions would be great!
P.S. Want to use touch events (when swiping to scroll)
Found it, you can add the sprite directly to a parallaxNode or add the sprite to a CCLayer and the CCLayer to parallaxNode; something like: