hello,
how does one move, rotate, scale images within an atlas.
im having trouble combining a Tween and a Movie. Is that the completely wrong technique?
SPTextureAtlas *atlas = [SPTextureAtlas atlasWithContentsOfFile:ATLAS_XML];
NSArray *frames = [atlas1 texturesStartingWith:@"ball_"];
mMovie1 = [[SPMovieClip alloc] initWithFrames:frames fps:12];
[self addChild:mMovie1];
SPTween *tween = [SPTween tweenWithTarget:mMovie time:3.5f transition:SP_TRANSITION_EASE_IN_OUT];
// you can animate any property as long as it's numeric (float, double, int).
// it is animated from it's current value to a target value.
[tween animateProperty:@"x" targetValue:self.stage.width - (int)mMovie.width/2.];
[tween animateProperty:@"y" targetValue:self.stage.height - (int)mMovie.height/2.];
[tween animateProperty:@"scaleX" targetValue:1.];
[tween animateProperty:@"scaleY" targetValue:2.];
[tween animateProperty:@"rotation" targetValue:PI_HALF];
[self.stage.juggler addObject:tween];