How do I select a specific region of an object for my character to overlap?

Not favoritedFavorited Favorited 0 favourites
  • 5 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • In my game, when a button is pressed, the collision for a closed platform is enabled, while the collision for an open platform is disabled. If this is triggered while my character is inside the closed platform's area, the character would get stuck.

    To prevent this, I set up a condition: if the character overlaps with the platform, kill the character. Initially, I thought this worked fine. However, in cases where two platforms are adjacent to each other, I noticed that the overlap condition rarely gets triggered when the character is running over the platforms at their junction, causing the character to die unexpectedly.

    How can I resolve this issue?

    Thanks in advance for your support!

  • Use "Overlapping at offset" condition. X:0, Y:-2

    I also suggest changing your events like this:

  • Use "Overlapping at offset" condition. X:0, Y:-2

    I also suggest changing your events like this:

    When I assign a '-' value to Y, the character dies when it touches the underside of the platform. I want the character to only die if it remains inside (stucks) the platform while the platform's collision is active. It shouldn't die or interact when touching the outside of the platform.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When I assign a '-' value to Y, the character dies when it touches the underside of the platform.

    Then add another condition, checking that the character is above the platform. Character.Y<Platform.BBoxTop

    You can also place an invisible sprite with a smaller polygon size inside the platform and use it for collision checks.

  • > When I assign a '-' value to Y, the character dies when it touches the underside of the platform.

    Then add another condition, checking that the character is above the platform. Character.Y<Platform.BBoxTop

    You can also place an invisible sprite with a smaller polygon size inside the platform and use it for collision checks.

    Thanks! Problem solved.

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