Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, Is this a way to make a ccbSaveCopperCubeVariable ? Thanks ! |
||||
|
You can read the variable content using ccbGetCopperCubeVariable, and depending on your platform, save it, or post it to a server for example. |
||||
|
Hi, and thanks for the response ! I know you can save variable in copper cube with the action save variable. But i was asking if there's a way to save the variable directly in the javascript action created. In my game, there's areas with a number of ennemys. There's 3 or 4 areas by map. So, i create an action javascript with the name of the map (an integer), an every area as a number. I use the ccbSetCopperCubeVariable like this : ccbSetCopperCubeVariable (""+ name of the map + area number"); But I was asking if theres a way in jaascript to do this : ccbSaveCopperCubeVariable (""+nameof the map + area number); or if I must save every area with the action in copper Cube. I don't know if it's clear... Thanks ! |
||||
|
No, currently there is not, you are right. You could implment this manually via JavaScript, but there is no built-in function for that. Will probably add one, it would be really useful, you are right. |
||||
|
OK ! Thanks a lot ! |
|