![]() Object with the game AI behavior of a scene node with the name 'player1'. Use for example #player1.health for getting or changing the variable storing the health of the There are also special variables available, for quickly accessing data in the current scene. Should be set to the name of another variable, which then will be used to change your variable. If set to 'Variable', the text in the field 'Value That number will be then used to change your variable. If set to 'Value', the text entered in the 'Value' attribute below ValueType: Can be set to either 'Value' or 'Variable'.Operations 'Set to a value', 'Add a value', 'Substract a value', Operation: Specifies what to do with that variable.VariableName: Set it to a name of your variable, for example 'score'.To the screen using the 'Change 2D Overlay Text'. Numbers and texts, influence how your application works by for example the 'If variable has a value do something' action, or be printed Variables can be used to bring more interactivity to your application. Sets or change the value of a global variable. Obviously only works when publishing as Windows or Mac OS X application. For showing the health of a game AI, use for example "Health: $#player1.health$", where 'player1' is the name For example to display the text of a variable named 'score' after some text in the 2D overlay, set the text to "Your score: $score$". It is also possible to print the content of variables with this, if wanted, by inserting the variable name surrounded by the '$' symbol. Sets the text of a 2D overlay to a new text. ![]() Since CopperCube 4.0.4, this works on all publishing targets. You can access and change nearly all features of the 3D scene with this. Specifies some javascript code to be executed. Note that for the 'URL' parameter, it is necessary to start it with otherwise it won't work. Stops a specific sound, which has been started by 'Play a sound'. When Playing in 3d, a 3d position can be specified, either at a fixed 3d position or relative to another position. Also, it is possible to do this animated, over a short amount of time. It to a new fixed 3d position or relative to another position. Based on the settings set, it is possible to set Sets a new active camera to render this scene from.Ĭhanges the camera target position, where the camera is pointing at. It is relative to the center of the mesh. The property 'ShootPositionDisplacement' lets you specify the exact position from where the shot should come from. This is useful for creating 3rd person shooters. There are two modes: Shoot into the look direction of that node (plus an optional additional rotation) or shoot to where theĪctive camera is pointing at, from that node. But when spefifying a speficic node where the action should shoot from, Usually, this can be left to [Current camera Specify a 3d object to be used as 'bullet' for this shot, or to use no bullet at all.Īdditionally, it is possible to specify a node from where it should be shot. This action is usually used together with the 'game AI' behavior. When you have a skeletal animatedģd mesh in your scene, you can spefify these animations in the animation editor. Makes it possible to change the current animation of an animated scene node to a new one. This action makes it possible to set a new texture to a scene node. Based on the settings set, it is possible to set it to a new fixed 3d scale or scale It a bit relative to the current rotation. ![]() Based on the settings set, it is possible to set it to a new fixed 3d rotation or rotate Lets a 3D scene node change its rotation. Based on the settings set, it is possible to set it to a new fixed 3d position or relative Lets a 3D scene node change its position. Makes a 3D scene node visible or invisible. Short descriptions of all types of actions available: Name To create an action, choose for example the behavior 'when clicked do something', and then click the '.' button in it's propertyĪ window will pop up where you can create a new action, to specify what should happen.
0 Comments
Leave a Reply. |