How do I make all objects composing a character "solid"?

  • I have a character with platform behaviour. It interacts with solid objects (like floor or cealing) normally.

    If i attach another object to the character (for exemple an head), the head does not interact with solid objects, so if i jump the head go through the ceiling, ignoring the collision box.

    how can I make it works making the attached object "solid" too?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Usually the player body and head are the same object, is there any gameplay mechanic reason why it must be attached separately?

  • Well, yea.

    Like moving the body with the directional arrows and moving the head with the mouse (like in a tank for exemple where the turret is controlled with the mouse and the body with the keyboard).

    The same problem applies even with attachable weapons, if the object is not solid it simply goes through the walls.

  • Is going through walls really a problem in a 2D game? Usually the player is a box and you play a sprite animation. Even if the weapon was attached separately, overlapping a wall wouldnt be an issue, either you push against a wall and he plays a different animation and the weapon moves, or you can overlap the wall. If you chose to have the weapon separate from the character as design then I don't think making it solid is a good thing to do.

  • Well, regardless of it being or not being a good choice, is a doable thing?

    How is it possible to achieve it if it's doable?

    There are roundabout ways to achieve similar result or just living ignoring the problem and move on, but I just wanted to know if there is a way to achieve it

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