How do I this turn layout and turn gravity at the same time

  • (Sry for my bad english)

    if anyone dont know how do liquit effect see this video : youtube.com/watch <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" />

    Guys i want to make a game like Locoroco, but i need make it mechanic and i dont know do it

    Locoroco Gameplay: youtube.com/watch

    In Locoroco when you turn the camera to left or right and apply physics to move the character ,i finded this video

    youtube.com/watch and here when he turn left or right layout apply physics to objects

    anyone can explain me how i can do this pls.

    Again sry for my bad english. <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed" />

  • You can't, not with the built-in physics and gravity.

    What you need is implement your own gravity. Set the physics gravity to 0, then apply your custom force to all sprites in your game at every tick.

    Rotating a 2D vector is a simple math problem, use google for that. So in order to rotate the gravity, you simply rotate your custom gravity vector, and all your objects should fall in the desired direction.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Try Chipmunk Physics:

    I think it allows to change the angle of gravity.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)