I’m using JavaScript in Cocos2d-x, and I can’t figure out how to load a Cocos Creator scene (*.fire which looks like JSON
data) into a variable which I’d like to pass to a cc.Transition
.
cc.Director.LoadScene
loads the scene, but it plays immediately! I need to get a reference so I can pass that to a cc.Transition
and then run the scene.
I’m using Cocos2d-x v3. I’ve looked everywhere (forums, Google, etc…) but I can’t find an API call that works.