Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Jump like a platformer?

malik
Registered User
Quote
2022-06-27 10:38:09

Hello,

I search about jumping but I didn't find too much about how to change the jump so that the character fall slower than jumping, just like a platformer where he stays a little bit in the air before falling.

Is there a way to achieve this with the available behaviors?

I saw the game Super Galaxy Ranger Luna 64 by dev Ishmaru was able to do it it seems

Thanks in advance.


just_in_case
Moderator
Quote
2022-06-27 10:40:53

Use the javascript command ccbSetPhysicsVelocity() to set vertical physics velocity on the Y-axis for your player and make sure you have enabled the physics engine.


malik
Registered User
Quote
2022-06-27 10:51:00

Ok, I'm gonna try it. I didn't try javascript yet on coppercube, so I'll check the tuto on how to do it.
I'll search if there are example of such script.

Thanks for the quick reply


coa
Registered User
Quote
2022-06-27 13:05:16

it is also possible to lower the gravity in root node to make nodes fall slower


malik
Registered User
Quote
2022-06-27 18:52:04

I didn't notice you could do that to the root node!
I'll check this , thanks coa!


okeoke
Registered User
Quote
2022-06-27 20:14:26

Hi,

I tried to implement a simple platformer couple of months ago than I was starting with coppercube.Then abandoned it. Default gravity behavior sort of didn't work for me, so I implemented my own.
Not even sure if it's usable, since the code there is a complete garbage, but you can find the ccb file here https://drive.google.com/file/d/1W0fUMvA1wWd0XpbEswfxT9v8A3SO7y84/view?usp=sharing.

The behavior is called 3d arcade controller or something like that.


malik
Registered User
Quote
2022-06-30 20:56:37

Thanks for the help okeoke!


DouweDabbe
Guest
Quote
2022-07-05 10:23:31

like this ???

https://www.ambiera.com/forum.php?t=7737



JaimeZegpi Guest Quote 2021-01-21
This is you need ?


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