I'm new to cocos2D , I have a image with 640 X 1136 pixel and I set it as background sprite statically. Now I want to move this sprite, continuously like moving background in upward direction. Set the code below in init
method. Here my code :
background = [CCSprite spriteWithFile:@"bgImagevertical.png"];
background.scaleX = 1;
background.scaleY = 1;
NSLog(@"size X :: %f && Y :: %f",size.width,size.height);
background.position = ccp(size.width/2,size.height/2);
[self addChild:background];