0 Favourites

Problem with "On Collision"

  • Imagine a rocket with 3 sections. The Bounding Box encompasses section 3 and nothing else.

    1 - |

    2 - |

    3 - |

    The rocket travels upwards towards Object1.

    I'm using the Pin(Position & Angle) behavior so that Section 3 "On Colision" with Object1, should freeze.

    My problem is that it freezes when Section 1 collides with Object1, rather than Section 3.

    The Bounding box on Object1 is no bigger than the object either, so it shouldn't be happening.

    Does anyone know why it's happening?

    EDIT : It seems to take the top edge of the visibly drawn image as Collision box for the Rocket, and the Bounding Box for Collision box for Object1. Why?

  • It depends on how you've set things up. Post your capx and we should be able to give you a more precise answer.

    Maybe it's because your collision polygon is not the same in every frames, maybe it's because your three sections are only one object type, maybe it's even something else. Can't know and tell you without having an eye on your project.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Dear Kyatric, THANK YOU!

    The image was supposed to be single frame, but apparently a copy of it had somehow snuck itself into the Animation Frames.

    They had different bounding boxes and that's where the issue came from.

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