Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
3rd person cameras just don't work for me

karmacomposer
Registered User
Quote
2017-06-19 20:15:38

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


ishmaru
Registered User
Quote
2017-06-20 01:20:26

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.


karmacomposer
Registered User
Quote
2018-08-29 18:55:48

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


just_in_case
Moderator
Quote
2018-08-30 09:15:41

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...


karmacomposer
Registered User
Quote
2018-08-30 16:01:04

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


just_in_case
Moderator
Quote
2018-08-30 16:20:52

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..


karmacomposer
Registered User
Quote
2018-08-30 20:37:12

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


just_in_case
Moderator
Quote
2018-08-31 03:11:16

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..


karmacomposer
Registered User
Quote
2018-08-31 03:23:06

@JIC - just not sure how to do what you are suggesting.

Is there a tutorial to do this?

Mike


just_in_case
Moderator
Quote
2018-08-31 06:52:01

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/...


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact