Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
There are two 3rd person cameras - the one that comes with coppercube as a camera choice and the other as a script. Both are KILLING ME. In the built-in third person camera, you have to use keys and the jump ability does not work at all. In the scripted third person camera you can use mouse but it's very wonky. In a normal third person camera, you should be able to use mouse to rotate the player and keys to move him. ...and... My character NEVER faces forward properly, so keyboard keys are always wrong. When I choose my character as the look-to point, the camera seems to have a point 20 feet in the air above the character. Perhaps this is a weird bone I never noticed in the 3D model. Is there a way to alter the look-to point of the camera so I can lower it down to the actual character so it's pointing correctly? Thank you. Mike |
||||
|
The script version is intended for top down games as it only registers x and z coordinates. There is currently no best way to do that sort of movement.HOWEVER you can fake it using a fps camera with the character patented to it but the camera can't be two far away and you need to restrict the angles you can bend to. |
||||
|
Does anyone know how to add run and other abilities to the Third Person script (not the camera)? I've looked at the code and know about where to insert commands, but not sure how to script it, to be honest. I'm looking to add jumping, fighting, throwing stuff, etc. Mike |
||||
|
simply check for a key press and then execute command like ccbsetscennodeproperty (scenenode,Animation,fight) to make a fight animation, or you can use the property position , rotation and all other properties to make the player move and rotate.. instead of doing this using javascript i will recommend you to make your player run ,move,fight,shoot etc,, using the inbuilt actions... |
||||
|
instead of doing this using javascript i will recommend you to make your player run ,move,fight,shoot etc,, using the inbuilt actions... Hmmmm. Do you mean commands when you say in-built actions? In the behaviors section of the editor, it only has idle, walk, and jump for the third person controller script. I would need to add the other stuff. HOWEVER, I have decided to use the 3rd person camera and add the actions to that - but HOW do I do that? Mike |
||||
|
Use when a key pressed behaviour... Then attach actions like shoot, change animation or position... Because the inbuilt actions have more possibility like move animated, rotate animated and more.. |
||||
|
How does this work for something like climbing and strafing? I have the strafe animations, but when I use the 'when key pressed' behavior and attach the appropriate animation to the A key (for a left strafe), it looks terrible because the 'Character moved by keys' behavior (whatever it's called) is using all that. Wouldn't it have to be added to THAT script? In fact, as per one of my other threads, wouldn't that also be the correct place to put the play footstep sounds? Mike |
||||
|
I have told to use inbuilt action for switching animation and for changing positions and all... I will never recommend to use move objects by keyboard behaviour.... As it has so many limitations... You can't map the default keys, jump is not good... Instead i wll ask you to create your own movement system... When a key W is pressed then move a scene node by a vector into the facing direction or something like this.. So that you can map your own keys and strafing won't look bad.. |
||||
|
@JIC - just not sure how to do what you are suggesting. Is there a tutorial to do this? Mike |
||||
|
here is the example of how to create your own movement for any object... just check out the behaviour of cubemesh and you will get to know how to do this... the example contains forward movement only but other movement can also be created using the same method. https://drive.google.com/file/d/... |
|