Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
ccbGetRootSceneNode() Problem

agbdev
Registered User
Quote
2021-01-06 12:25:33

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();



Robo
Guest
Quote
2021-01-06 12:37:10

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...


agbdev
Registered User
Quote
2021-01-06 12:38:26

Okey
Thanks


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact