Skip to content

Instantly share code, notes, and snippets.

@sdabet
Last active December 11, 2015 09:18
Show Gist options
  • Save sdabet/4578962 to your computer and use it in GitHub Desktop.
Save sdabet/4578962 to your computer and use it in GitHub Desktop.
CCNode *background = ...; // your complex hierarchy of nodes
// Create the NodeRenderer
NodeRenderer *renderer = [NodeRenderer renderTextureWithNode:background width:winSize.width height:winSize.height];
// Add it to your scene
renderer.position = ccp(winSize.width/2, winSize.height/2);
[scene addChild:renderer];
// Fading out
[renderer.sprite runAction:[CCFadeOut actionWithDuration:3]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment