Point overlaps Point.[solved]

This forum is currently in read-only mode.
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • It would be nice if we had this option.

    <img src="http://img165.imageshack.us/img165/5040/pointwpointfe2.png">

    But besides that, what I'm trying to accomplish might be simple, so I'll ask -- How would I set up my events to make it so my detector can do this:

    edit- new pic

    <img src="http://img374.imageshack.us/img374/1626/overlapspointzo0.png">

    ...With every box family I add no matter the size at runtime.

    Keep in mind this view isn't top down or platform, its in between the two and it's faking Z depth. And all my boxes will have a totally different sprite/look.

    Since there is no "point overlaps point", I don't quite see how I could do this without having to add thousands of width and height sprites to overlap (although, I might be missing something). I want to use the right green box sprite to stop the character from going left into the box, and bottom darkred sprite for going up inside and vice versa for top and left. And no, solids don't work for this, I'll just have to add a cap for you, because you probably won't get why otherwise. If you download the cap go under the sky sprite and hit the shift key. This you cannot do with "solid" and these boxes aren't might to be solid anyway, I want some other objects to do some separate things with solids.

    (Which leads me to another question, can I use solid in events? if not please add the options. So I can do -- IF "object" COMES IN CONTACT WITH "solid" - DO STUFF.)

    [solved]new features like overlaps at offset and collision masks make this not so much a problem

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You should be able to see Solids and other attributes in object parameters, so you can set up an 'Object overlaps solid' type event.

    As for 'point overlaps point', a point is just a co-ordinate with no size or dimension. Two points can only be said to overlap if their X and Y co-ordinates are identical. Due to rounding errors, you might want to round the coordinates to test if they overlap to pixel resolution.

    In other words, you can use compare values like so:

    + Round(x1) equals Round(x2)

    + Round(y1) equals Round(y2)

    -> Points (x1, y1) and (x2, y2) overlap

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