So I have mainScene and I have LogoScene, I am wondering If i can make logoscene show a logo, then transition to mainscene.

here is what i have

    import org.cocos2d.layers.CCLayer;
import org.cocos2d.layers.CCScene;
import org.cocos2d.menus.CCMenu;
import org.cocos2d.menus.CCMenuItemImage;
import org.cocos2d.nodes.CCDirector;
import org.cocos2d.nodes.CCSprite;
import org.cocos2d.types.CGPoint;
import org.cocos2d.types.CGSize;

import android.graphics.Color;
import android.graphics.Rect;
import android.view.KeyEvent;
import android.view.View;
import android.view.View.OnKeyListener;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.LinearLayout;

public class LogoScene extends CCLayer {
    public static CCScene scene() {
        CCScene scene = CCScene.node();
        LogoScene layer = new LogoScene();
        return scene;

    public LogoScene() {


        CCSprite pSpNameText = CCSprite.sprite("img/logo_name_textfield.png");
        pSpNameText.setPosition(CGPoint.ccp(1080, 300));
        this.addChild(pSpNameText, 0);
= bingo.getLayout();


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.