Platformer with physics, object interacting

This forum is currently in read-only mode.
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Hello,

    im posting again.

    I want to create game like LIMBO. I think guys, you know it.

    So far, Ive got physics on crates etc., wich are pushable and pullable.

    But I dont know how to make my character move, jump with physics behavior on it. If I have only platformer movement, it dont act like it have physics. If i have physics only, i dont know how to script movement and things like that.

    So guys, what is the solution for my problems?

    Here, I have found what i exactly need:

    youtube.com/watch

    Its done in Construct Classic, so it is possible. Can you help me? Thanks.

  • I would suggest to use a rectangular sprite which serves as the player hitbox and has the physics behavior attached. Enable "Gravity" and "No rotation", also you probably want the "Contact elasticity" to be 0%.

    Now make events that add force (Physics tab). For moving left/right add negative/positive values to the X component. Don't forget Timedelta, because this is repeated when the key is held down. Also you need to include a condition that prevents force to be added when you're already at your maximum movement speed.

    For jumping add force again, this time a negative value to the Y component. Also this is usually a one time key press, no Timedelta here.

    Well, those are the very basics that should get you going I hope. Mixing Physics and Platform behavior won't work too well, as you probably have figured out yourself. Remember to keep centered hotspots for all physics objects and also use bounding box collision masks where possible for maximum performance.

  • Another thing you can try, but then you have to manually make your character slow down when pushing heavy things for instance because physics wont do it for you anymore -

    Is have both physics and platform behavior on your character and have physics property immovable enabled. as of cc-r1, an immovable physics object will apply forces that correspond roughly to any object movement made outside physics behavior.

    If you need physics to be able to knock around your character momentarily, you disable platform, and change to moveable and then back again when you're done

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Very, very thanks guys. Im gonna try your solutions.

    Can you explain me what is Timedelta and give me some examples?

  • Bump

  • "Construct's behaviors are all already programmed to work in units of pixels per second. This means they're all guaranteed to move at the same rate on any computer, no matter the framerate. It is only when you move objects via events that you can get in to tick-based problems. "

    Well, from my experience the 8 direction movement does not.

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