[135] overlap object not working correctly

Bugs will be moved here once resolved.

Post » Mon Jun 24, 2013 5:36 am

Make 2 objects with 64x64 and with collision box around the whole area for example and add an event that when one overlap the other one they will be destroyed.

This event is triggering even when they are side to side with each other... like one is on coordinate 0,64 and the other one is 0,128 and still the event is triggering while from what I understand to make it trigger the object location should be 'inside' the other object.Guif0DA2013-06-24 05:38:41
B
32
S
6
G
5
Posts: 437
Reputation: 6,119

Post » Mon Jun 24, 2013 5:56 pm

Closing, this is by design. (Please also follow the bug report guidelines and provide a .capx with every report; if I didn't immediately know this was by design, I'd have still closed it without investigating for failing to follow the report guidelines)
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Tue Jun 25, 2013 1:12 am

[QUOTE=Ashley] Closing, this is by design. (Please also follow the bug report guidelines and provide a .capx with every report; if I didn't immediately know this was by design, I'd have still closed it without investigating for failing to follow the report guidelines)[/QUOTE]

Hey Ashley thanks for the reply, I'll start to follow the guidelines in the future.. about the subject:
But the object isn't overlapping, that's the name of the condition, it's supposed to active while overlapping. If you don't want to fix because of design choice u could change the function name or a better idea, change it's currently name to something different(like is in touch with another object for example) and make a real overlap condition.Guif0DA2013-06-25 01:14:55
B
32
S
6
G
5
Posts: 437
Reputation: 6,119

Post » Tue Jun 25, 2013 11:31 am

I don't think it's as obvious as you say. If the edges of two objects are at exactly the same position, do they overlap? It depends on where you say the object ends - does it end just before its edges, or does it include its edges? Unfortunately we can't change it, mainly because the Platform behavior heavily depends on this.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155

Post » Tue Jun 25, 2013 11:04 pm

[QUOTE=Ashley] I don't think it's as obvious as you say. If the edges of two objects are at exactly the same position, do they overlap? It depends on where you say the object ends - does it end just before its edges, or does it include its edges? Unfortunately we can't change it, mainly because the Platform behavior heavily depends on this.[/QUOTE]

I understand that for reasons you know better than anyone it can't be changed but I'm just adding my point of view, if an object with the size 20x20 is located in the coordinate 0,0 and another object with the same size 20x20 located in coordinate 20,0 then they are side by side, they are touching each other, it's like touching a finger with another one, they do not overlap, but if the second object is located in coordinate 0,19 then it's already overlapping by 1 pixel.

You said you can't change it, but can you make a new condition that 'truly' act if an object overlap another one and keep the old condition the way it is right now and maybe change his name?

I really have no idea if that would be hard to make, maybe add in the future that feature? I think this would be very useful for more possibilities in a easier way.
Thanks
B
32
S
6
G
5
Posts: 437
Reputation: 6,119

Post » Wed Jun 26, 2013 1:05 pm

It could also be argued that they are overlapping. The right edge of the left object is at X = 20. The left edge of the right object is also at X=20. Therefore their edges are at the same position, which makes them overlap.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,155


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 8 guests