How do I show pop up "crash" at collision point when car object a & b collides in game?

0 favourites
  • 6 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • Hi Friends,

    Need an urgent help. While creating car parking game, when car a collides with car b I want to create a pop up at point of collision but not able to calculate point of collision. Please help me.

    Regards,

  • There is no easy way to do this, see examples in this post:

    construct.net/en/forum/construct-2/how-do-i-18/spawn-particles-on-the-point-2-59886/page-3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is no easy way to do this, see examples in this post:

    https://www.construct.net/en/forum/construct-2/how-do-i-18/spawn-particles-on-the-point-2-59886/page-3#forumPost522576

    Thanks DOP, I heard there is system condition > pick by overlapping is made for this job but I dont know how to use it. Adding secret sprites for collision detection is what I am trying to avoid for this project but I appreciate you for helping out with quik support. Can you help me further with the above provided system condition?

  • If you download the last example from the link I posted, it actually uses "pick by overlapping point" event and doesn't require any hidden objects.

  • If you download the last example from the link I posted, it actually uses "pick by overlapping point" event and doesn't require any hidden objects.

    Hi Dop, first of all apologies bcz capx which I downloaded was wrong. Now I have downloaded the correct one from your post shared. Looks really nice but need lots of effort to understand as I am not an expert. The condition u applied for pick by overlapping went above my head. I couldnt understand what lerp is doing to calculate and how it will help in finding out correct collision point. Can u help me with simple 2 object collision? that will be really helpful. or if u can explain me a bit how pick by overlapping works?

    I appreciate you DOP for helping me and for bearing my words as I am not an expert with construct 2. God bless u always.

  • I posted explanations in that post. This method is not perfect as it requires you to duplicate collision polygons with image points.

    The first capx you downloaded is using a "detector" sprite - a small invisible object that's traveling from image point to image point and detects collisions with asteroid. In the last capx I got rid of that sprite and used "Pick by overlapping point" event instead. But it basically does the same thing - moves a virtual point and checks if there is an asteroid overlapping this position.

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