Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Heyho, i got a problem. Im trying to save the current scene of the player into a file when the player pressed button. I tryed to use ccbGetRootSceneNode() but it returns nothing. (the file is just empty and when i try to print it, it just prints nothing) What should i do? is ccbGetRootSceneNode() a bad option to use? Thanks to anyone who could help me Here is what i did: var playerSceneNode = ccbGetRootSceneNode(); |
||||
|
The root scene node is just a hidden code that links to the actual scene. You cannot save the whole scene except for when you save the ccb file in the editor - that's the only time you can do that. The save current scene changes you must save variables containing the change info and restore on load again.. You can however save from the root scene node the gravity, fog, wind and shadows... |
||||
|
Okey Thanks |
|