Ambiera ForumDiscussions, Help and Support. |
|
| [ 1 2 ] Page 1 of 2 |
|
|||||
|
Hello :-) Is it possible to change the attributes of a Behavior at runtime? For example: When Player enters area -> enable CanFly on PlayerController? Thanks a lot! :-) |
||||
|
I've tried to do this in the past and I don't think you can. I think you'll just have to use 2 cameras. |
||||
|
Thanks for the idea! In this example i try to use the middle block as ladder. (FPS-Controller) Can you give advice on how to make the transition between the 2 cameras smoother? www.nhx-music.de/stuff/ccb_LadderTest_03.ccb Thanks! |
||||
|
Got you covered https://5v3n.itch.io/coppercube-... This will solve your need |
||||
|
Sweet, thanks a lot for the ladder-skript! That solves that :-) Can you give any advice on how to smoothly switch between Cameras with Character-Controller (to cover any other usecase besides ladders :-) ) Thanks a lot! |
||||
|
Welll, this does that https://zeicmann.itch.io/copperc... You can try out the ccb files that comes with it and see |
||||
|
Cool collection, thanks for the tip! |
||||
|
You can change variables, attributes and properties using the basic functions: ccbSetCopperCubeVariable(varname, value) ccbGetCopperCubeVariable(varname) ccbGetSceneNodeProperty(sceneNode, propertyName) ccbSetSceneNodeProperty(sceneNode, propertyName, value) |
||||
|
Thanks :-) But can i access properties of Behaviors with this? for example enable/disable "Affected by Gravity" on the "Collide when moved"-Behavior at runtime? wrote:
You can change variables, attributes and properties using the basic functions: ccbSetCopperCubeVariable(varname, value) ccbGetCopperCubeVariable(varname) ccbGetSceneNodeProperty(sceneNode, propertyName) ccbSetSceneNodeProperty(sceneNode, propertyName, value) |
||||
|
Possibly yes, with a custom binary but I normally write my own behaviours so have full access to all its properties. You can try using ccbSetPhysicsVelocity(sceneNode, x, y, z) for some control over physics. |
||||
|
Hi gazzauk, what you saidsounds interesting(concerning you write your own behaviours), have you developed any game? |
||||
|
nilefox wrote: Hi gazzauk, what you saidsounds interesting(concerning you write your own behaviours), have you developed any game? As I understand it, the default in-built behaviors can easily be replicated in javascript, they are just quick and easy to use for non-coders. I develop mostly applications and not many games. I recently started to use CopperCube for R&D and prototyping projects that are then implemented for personal and educational use. If I'd had known about CC years ago then I'd have used it much sooner as it's a breeze to work in and get simple projects up and running in minutes. |
||||
|
That's interesting, I'm not much of a coder, it's nice to see someone who has in depth knowledge on such stuff |
||||
|
nilefox wrote: That's interesting, I'm not much of a coder, it's nice to see someone who has in depth knowledge on such stuff My in-depth knowledge is not so much in coppercube but programming languages in general. I can code very well but I'm a terrible games maker, so I stick to what I'm good at and rely heavily on other people with the design skills do their thing :) |
||||
|
Ahh, I see, are you on Discord or is there any way I can reach you? |
||||
| [ 1 2 ] Page 1 of 2 |
|
|