mrpink's Forum Posts

  • 4 posts
  • you should add another little "sensor" sprite (without physics behaviour this time) attachet to the bottom of your main character sprite, then check for "onOverlapping" between sensor and the ground/objects

  • http://dl.dropbox.com/u/23551572/C2/PhysicsGravity.capx

    Gravity is a dark force

    thanks Yann i understood the trick involved in your example, it gave me the right input to my brain;

    but maybe i should try a more robust way of controlling the gravity since i need to do a character/environement management with changing gravity vector

  • Use the physics object --

    ON Collision with object ->

          object.setWorldGravity -> -10(or whatever you want.)

    thanks smitchell, but as i mentioned, issuing a value of "-10" flips gravity from bottom to top along Y axes, right?

    i'd like to change gravity along orthogonal axes (X axes), i.e. to make falling objects from left to right of the screen

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi everyone,

    using physics behaviour for sprites, i can set world gravity to a posite or negative values following the convention that positive values go from top to bottom of the screen

    i was wondering if i could set world gravity along X axes (i.e. from left to right or right to left) insted of Y one.

    Thanks in advance for help

  • 4 posts