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