Hi I’m using cocos creator 1.3.1, I want to use cc.director.pushScene(sceneB); this function
My question is how to create sceneB object to use above function.
I create sceneB by CocosCreator IDE.
Hi I’m using cocos creator 1.3.1, I want to use cc.director.pushScene(sceneB); this function
My question is how to create sceneB object to use above function.
I create sceneB by CocosCreator IDE.
hideho
you can create a scene by using
var scene=new cc.Scene();
if you want to create the whole scene in code that is
if you just want to create scenes manually in cocos creator you just go to file>new scene in your project, different scenes can be loaded them using
cc.director.loadScene('SceneAssetName');
as answered here:
cheers