Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Does anyone know how to change gravity in games?

bulletchain
Registered User
Quote
2023-05-02 09:28:26

Does anyone know how to change gravity in games?


starx78
Registered User
Quote
2023-05-02 09:44:20

Var root = ccbGetSceneNodeFromName("root") ;
ccbSetSceneNodeProperty(root, "Gravity", value) ;


starx78
Registered User
Quote
2023-05-02 09:46:25

I think it is done with this code.but I don't know how to make. Someone write how to do it with this code.


eoh
Guest
Quote
2023-05-02 10:16:56

you can use the above code in "before first drawing" execute javasscript.

its also possible to change gravity in the editor in the root node if you dont know that


bulletchain
Registered User
Quote
2023-05-02 12:59:52

I mean changing the gravity in the game when the player picks up a prop, not the word that changes the gravity in the game at the beginning.


bulletchain
Registered User
Quote
2023-05-02 13:01:45

oh,I accidentally typed the Numerical into word.


Create reply:


Posted by: (you are not logged in)


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