[r216] Family LOS bug

Bugs will be moved here once resolved.

Post » Tue Nov 24, 2015 4:33 pm

Problem Description
The line of sight behaviour doesn't work if the objects are part of a family.

Attach a Capx
https://dl.dropboxusercontent.com/u/109 ... s_bug.capx

Description of Capx
Shows the difference between using a family and non family when testing for line of sight.

The green squares are in a family with the LOS behaviour added to it and the blue squares ain't. The code for both of them are the same. The UID of the squares that have LOS to the red square will be written in the appropriate list. So would expect these to have the same output.
Image

When running the program its clear that the green square ignore the LOS test. Where as the blue square doesn't
Image

Steps to Reproduce Bug
Start program.

Observed Result
Objects part of a family are not working correctly with line of sight tests.

Expected Result
That it would work the same whether the line of sight behaviour were added to the individual objects or the family

Affected Browsers

Operating System and Service Pack
Windows 7

Construct 2 Version ID
r216
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828

Post » Wed Nov 25, 2015 9:02 am

I had this issue way before 216, but forgot to make a proper report, hope this will allow Ashley to fix it.
B
62
S
22
G
4
Posts: 357
Reputation: 6,478

Post » Wed Nov 25, 2015 9:53 am

Danwood wrote:I had this issue way before 216, but forgot to make a proper report, hope this will allow Ashley to fix it.

Yeah its weird how a bug like this haven't been reported a lot of times. Because you would assume many people would run into similar problems.
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,828

Post » Mon Feb 08, 2016 3:38 am

I was about to post about this bug with a capx. Seems as if it still exists just as this post describes.
B
90
S
31
G
8
Posts: 308
Reputation: 10,787

Post » Mon Feb 08, 2016 12:39 pm

Also had this problem before, but It was like months ago with my past failed game. There are other LOS bugs that I have encountered before, one in LOS AI with For Each or Pathfinding events. I will try to look at my previous game .capx to look for unsolved bugs if they aren't solved yet.
Image



The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
55
S
17
G
90
Posts: 1,111
Reputation: 59,145

Post » Fri Feb 12, 2016 1:51 pm

This was a tricky one, but it should be fixed in the next build. Thanks for the report.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest