Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool HelloWorld::init()
- {
- if(!Layer::init())
- {
- return false;
- }
- auto spr = Sprite::create("Icon-57.png");
- spr->setPosition(Point(100, 100));
- spr->setOpacity(0);
- this->addChild(spr);
- auto action = FadeIn::create(3.0);
- spr->runAction(action);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement