If you check out the linked video you’ll see what I’m wrestling with. I’m presenting a world map where you pick a city, then I want to simulate zooming in on that city to see the levels that are available. I’ve got the zoom part where I’m pretty happy with it, but the crossfade goes to white and I can’t figure out why.
I had this working in an older prototype project with 0.99.5, but in this case I have rebuilt the project using Kobold2d 1.0.2, which includes cocos2d 1.0.1. Not sure if the crossfade changed in the meantime, or if I’m doing something wrong.
- (void) zoomToSelectedCity: (LHTouchInfo*) info;
// Shift the layer to center the sprite up on screen
CGPoint center = ccp(WINSIZE.width/2, WINSIZE.height/2);
CGPoint cityPoint = [self convertToWorldSpace: lastCityTouched.position];
CGPoint target = ccpSub(center, cityPoint);
[self.parent runAction: [CCScaleBy actionWithDuration: 1.0f scale: 3.0f]];