![]() Fixed a bug causing dynamic point lights not to rendered correcty sometimes when there was a directional light active as well.WebGL: Replaced local files warning with updated information (the "allow-file-access-from-files" flag doesn't work anymore with Chrome).The engine now uses less memory when run on Windows / Mac OS.exe Apps no longer store their variables in the "CopperCubeApp" folder in the registry, but in a folder named after the application name. The editor now uses some bigger default window sizes when run on bigger screens.Also, this will reduce the 'stuttering' which some people noticed on faster Android devices. The default Android update mode is now 'every frame' instead of 'when scene changed', resulting in a more smooth gameplay.Other, smaller new features and bug fixes: Fixed a bug causing animated foliage not to be rendered sometimes in WebGL client.Fixed bug with deserializing light data when using JavaScript.Fixed a bug which prevented changing the color of dynamic lights sometimes.Default canvas size for new WebGL apps is now 800圆00.Default Window size for new Windows apps is now 800圆00.Updated documentation with missing parameters, for example for the ccbSteamSetAchievement() command.Fixed a bug causing jumpy camera when clicking and pointer lock is enabled in WebGL.ccb file into the game using ccbSwitchToCCBFile() Fixed a problem causing custom behavior scripts not work when loading anĮxternal.Fixed a problem when using a static object with a game AI behavior: Previously, if this object had collision enabled, it wasn't able to correctly shoot because it would cause to collide with itself (if collision was enabled for this object).There is now a new property value named "PositionAbs" supported by all scene nodes, which returns the absolute position of an object when using ccbGetSceneNodeProperty().This feature now works nicely on all modern browser supporting this, and additionally features using mouse coordinates (like the "When clicked on this" or "hovered by mouse" behaviours) work nicely as well by assuming the mouse cursor is now in the center of the screen. ![]() The mouse cursor gets hidden and you move the the view by moving the mouse. When you use WebGL in fullscreen mode you can additionally enable pointer lock - meaning First Person Shooter controls work on the website as in a desktop app game: It is free for all existing users, as always. This is a maintenance release, including mostly bug fixes and minor improvements. I'd recommend you to put this to the root scene node.CopperCube update 5.7.1 is now available. 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. texture.png), and "texture" with anything you want 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 & other game components inside the executable ("gamename.exe").
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |