Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
How can I add mouse support to the 3rd person camera?

karmacomposer
Registered User
Quote
2018-08-27 14:46:57

I would very much like to use both keyboard, mouse and even touch controls all in the same 3rd person camera controller so that one game can be used on all devices.

Mouse for rotation of the world and mouse button control and touch to move the camera.

Again, are there any tutorials or javascript examples on how to do this available?

Thanks.

Mike


karmacomposer
Registered User
Quote
2018-08-28 14:31:00

I am sure this is possible - anyone have any experience adding mouse rotation to the third person camera?

Mike


just_in_case
Moderator
Quote
2018-08-28 18:26:49

U can use emulate a key for touch system... Using the 2d touch button...

To rotate the world using mouse... There maybe a script already available for third person shooter ....
Here is the link

https://www.ambiera.com/coppercu...


karmacomposer
Registered User
Quote
2018-08-28 22:16:03

Do I use this in place of the 3rd person camera or along with?

Please help me by describing HOW to place and use this script.

Thank you.

Mike


just_in_case
Moderator
Quote
2018-08-29 06:49:18

Add this script behaviour to your player object... And remove the move object with keyboard if already attached...
Then choose your tpc in camera... And adjust other properties accordingly... Like speed, jumpspeed jumplength ,etc...


karmacomposer
Registered User
Quote
2018-08-29 18:03:31

Yes, I like this script better, but it needs the ability to run, swim, climb, etc.

It also needs the ability to look up and down somehow (keys I guess).

I assume that has to be programmed in javascript to the script in question.

Mike


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (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