Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Access variable through JS

Prince
Guest
Quote
2015-10-17 10:53:28

I want to de-accelerate my car through touch input.

There is a variable DecelerationSpeed in "Object and Person controlled by keyboard".

I m using the following code.


ccbSetCopperCubeVariable(DecelerationSpeed, 0.8)

Will it work ?

Kindly help me, I am designing a car racing game.


niko
Moderator
Quote
2015-10-17 12:56:49

Hi,
I don't think this is possible, since I cannot find that in the documentation. But if you are using WebGL, this still might work. But maybe I'm totally wrong about that.


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