Overlapping?

0 favourites
  • 3 posts
From the Asset Store
Units do not overlap each other and use different ways if there are several free ways.
  • Hi!

    Who will explain me about overlapping?

    how i use this condition?

    thanks <img src="smileys/smiley18.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Each object have a collision mesh or mask, whatever you want to call it, and if they are overlapping the condition will be true. Its a bit easier to explain if you take 2 sprites, and open them in the C2 paint editor. In the left side at the bottom, there is a collision button, if you press that, you can see the collision mesh for the sprite.

    You can manipulate the collision mask here, or you can right click the sprite, and choose set as box I think its called and it will make the whole sprite a collision mask, or you can choose guess collision (Cant remember the name) and C2 will base the collision mask on what is in the image. Guess collision is only really useful if your sprite have transparency.

    When you use the overlapping condition, its not the actual sprite or whats painted in it, that it uses. but the collision mask. So if two of these mask overlap the overlapping condition will be true and whatever action you have specified for that condition will be triggered.

  • <img src="http://ccl.northwestern.edu/netlogo/docs/images/intersecting-polygons.png" border="0" />

    When whe talk about overlapping , we talk about multiple objects touching each others , as described on the picture above

    There's 2 primary events when talking about collision

    Is overlapping

    and

    On Collision

    And the main difference between the two is that ...

    On Collision only fires once , when the two collision boxes enter in collision

    While ...

    is Overlapping fires when the two collision boxes are overlapping

    and will continue triggering until the two boxes aren't overlapping anymore ...

    You could say that on collision is a Is overlapping with a trigger once but that's another subject <img src="smileys/smiley1.gif" border="0" align="middle" />

    Cheers !

    P.S: Read further on the manual and get a free badge ! ;)

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