Game Development Reference
In-Depth Information
auto newScene = TransitionMoveInR::create(0.2f,
LevelSelectLayer::scene());
Director::getInstance()->replaceScene(newScene);
The code just described creates a new transition object that will slide in the new
scene from the right-hand side of the screen to lie on top of the current one. The
transition will take 0.2 seconds.
Search WWH ::




Custom Search