Here is my code to add sprite on the layer
varSprite1 = [Sprite spriteWithFile:@"game_bg.png"];
varSprite1.position = cpv(240, 390.5);
[self addChild:varSprite1 z:-9];
Here is My few basic questions:
1. How to change the z-order (currently it's -9) of the object "varSprite1" at run time?
2. How to vary alpha value of sprite between (0.0 , 0.1 , ......, 0.9,1.0)?