I'd recommend you to put this to the root scene node. So if flying through mountains isn’t the desired behavior Speaking of behaviors, that’s exactly how we can fix this. Now we need trigger that will execute the scripts above. Var texture = ccbLoadTexture("./directory/filename") Var s = ccbGetSceneNodeFromName("NodeName") first texture in your prefab is "0", 2nd texture is "1", and so on. "materialindex" is the number of texture in your prefab. To execute the scripts above, you have to use this script:ĬcbSetSceneNodeMaterialProperty(s, materialindex, "Texture1", texture) So if your texture destination is "./gamedata/textures/filename.png", and the game location is in "D:\Game\MyGame", it will load texture from "D:\Game\MyGame\gamedata\textures\filename.png Note: "./" is the root folder of the game. 3D games created with CopperCube also run on iOS 8 via WebGL. It creates Mac OS X and Windows apps, WebGL and Flash websites and Android apps. When the number of variables increases, the number of the square (cells) increases. Visualization of 5
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |