mojonero.blogg.se

Coppercube material index to change
Coppercube material index to change





  1. #COPPERCUBE MATERIAL INDEX TO CHANGE HOW TO#
  2. #COPPERCUBE MATERIAL INDEX TO CHANGE TRIAL#

One thing to do is to make the key disappear as you "take it" - to do this: Of course, this example is far from complete. This is a very basic explanation of a very powerful feature. Otherwise, if the player lacks the key, it will not do anything. So, if the player has the key and is near the door, CC will check if the player has the key, and if so it will open - rotate the door 90 degrees on that axis. Choose the door and change the middle value to 90 or -90. Enter "key" value"1" and function for example: change rotation of scene node". As function, choose: "if variable has a value.". Givet it the on-proximity-behaviour as above. This means that when the player is near the key in the scene, the variable will change like a light switch - is now in on-position.ģ. Be careful - it has to have correct spelling! Enter value "1". Write "key" or "doorkey" or whatever you named it in the first step. Choose funtion "enter/change a variable". Enter a radius, choose the player, choose to activate when the play enters the radius. In your scene, you have placed a key for the player to find. So, you have instructed the game that the key is zero - it has no value as the start of the game.Ģ. Under "behaviours" press "+" and choose "before something happens.". You could do this by selecting the "scene" (at the top in the scene graph explorer). Start to make/import those objects into the scene and the follow below:ġ.

#COPPERCUBE MATERIAL INDEX TO CHANGE HOW TO#

How to make this happen is explained below. You can't open that door without the key. So let's imagine that there is a key to be found in the CC-scene. Or you can change the player animation from walking to swimming as the player enters a lake, or make a text screen show up if you have completed a specific task, like collected a sufficient amount of stuff. When you understand this concept, you will be able to do a lot! You can change the sound of foot steps depending on what kind of area/object the player is walking at. Or rather, it's the possibility of having that key. If you have that key, it might help you unlock a door, which will take you further in the game. To make it easier, think of them as a key. It is the order in which the materials are shown there.Variables are essential to understand in order to make interactions happen.

#COPPERCUBE MATERIAL INDEX TO CHANGE TRIAL#

How would I know which ID that is? Or is it trial and error? I have a wheel with 3 different textures on it. Is there any way of differentiating between the different material ID's? For e.g. I have a model with quite a few textures. If you are using scripting, the second parameter for ccbSetSceneNodeMaterialProperty is the material index. Set it to 0 for the first material, 1 to the second and so on. When using a 'Change texture' action, select change for "Change which texture" to "material with index".

coppercube material index to change

Tip: It's easier when you uncheck the box under Tools -> Options -> View -> Group similar materials. Depends on how you want to do it: Either using an action or using the scripting system. Should one then use material ID? How would you acces the correct ID for the correct object? Is there any way to replace more than one texture at a time? I see that Coppercube is able to create an object with 3 materials. Ambiera Forum > CopperCube > Help with CopperCube







Coppercube material index to change