我见过很多教程,但不是我想要建立一个类似...视差滚动的Cocos2D
创建视差图3只小精灵(背景下,第1层,第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
我如何实现屏幕的滚动和精灵会以不同的速度移动?
任何建议将是伟大的!
P.S.想要使用触摸事件(当滑动滚动时)