Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
[SOLVED] Hi, just wondering if there is a command to change the fog colour please? At the moment, I'm placing a transparent 2D plane over the play-field which I can enable/disable visibly. It actually looks OK but might be better if I can change the fog color, triggered by an event. Is that at all possible? *I'm thinking something along the lines of... var f = ccbGetSceneNodeFromName("Level 1"); ccbSetSceneNodeProperty(f, "FogColour", 99,14,20); ...but I can't get it to work. Would appreciate any help. Thank you. |
||||
|
Solved it by adding the following script... var root = ccbGetRootSceneNode(); ccbSetSceneNodeProperty(root, "FogColor", 20,45,79); |
||||
|
it is good to always study the documentation |
||||
|
Thanks, but the documentation doesn't actually explain how to change fog colour or fog depth dynamically... https://ambiera.com/coppercube/doc/index.html |
|