Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
I'm making a physics-based game in which you control a cube. I've given the cube affected by physics engine and a player controller but since that doesn't work I tried to use the ccsetveloctiy command but I can't seem to figure out how to use it. I need help in making the cube move in forward, backwards, left and right and also jump. Having the cube rotate it the direction it moves will also be very nice. Could someone help me? Link to file: https://backlash-game-studios.itch.io/cube-project |
||||
|
Make sure you go to Tools > Publish settings > Physics Engine and change it to Physics simulation. Change your code to this: var main = ccbGetSceneNodeFromName("main"); Cube should jump now. Recommend you read the documentation if you have not: https://www.ambiera.com/coppercu... |
||||
|
It works now, thank you very much. |
||||
|
where i can edit physics engine script |
|