![]() I'd recommend you to put this to the root scene node. 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) in the 'ActuionOnLeaveMouse' hide all the overlays again. In the behaviors 'ActionOnEnterMouse', add a couple of 'Hide or Unhide a Scene node'actions, in which you select the 2D Overlays you want to appear. 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 CopperCube includes several actions which can be triggered by behaviors and other actions. Coppercube is a tool that can be used to create interactive 3D applications, either for Windows or for the web. Select the object of your interest, and add a 'When Cursor Moved Over do something ' behavior onto it. 3: Import the legs animation into Coppercube and apply the legs texture. 2: Load the full model into blender again, delete the legs and export the head animation as modelhead.fbx. Note: "./" is the root folder of the game. 1: Load the full model into blender, delete the head and export the legs animation as modellegs.fbx. 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. This tutorial shows how to use dynamic realtime 3d shadows in your game, and also gives a short overview of the other lighting techniques in CopperCube.Read more. texture.png), and "texture" with anything you want CopperCube is a 3D authoring tool - create 3D websites, apps and games without programming. Replace "directory" with your textures directory, replace "filename" your texture name (i.e. Now make a variable that will load the texture: var texture = ccbLoadTexture("./directory/filename") Replace "NodeName" with your scene node name, and replace "s" with anything you want. Make a variable that will get your target scene node: var s = ccbGetSceneNodeFromName("NodeName") Ok! now, it's time for the tutorial to begin! :) Especially if we use high-poly models, high quality sounds, 2K Textures (Current CopperCube version only support 2k textures max.), it's possible that you will get your. Since the files are packed inside the game, the size of the executable would be extremely high (Indeed). Then what's the advantages.? Of course, the size. So we can't edit the game, we can't even change the icon of the Compiled Game. Not only that, CopperCube also encrypts every single file inside the game. The advantages is our gamefiles are secured. Today i will show you how to make games made with CopperCube can load textures externally.Īs we know, games made with CopperCube will pack the models, maps, sounds, textures
0 Comments
Leave a Reply. |