LOS bug: inconsistent pixel measurement in range

Bugs will be moved here once resolved.

Post » Wed Jan 29, 2014 3:05 pm

Link to .capx file (required! If link is blocked remove the http and www parts):
https://www.dropbox.com/s/e5lntbgsegv0dmf/LOS_test.capx

Steps to reproduce:
1. Make a few objects
2. Make a line object with the Line of Sight behavior
3. Have a line object be attached to one object (container is optional)
4. On start of layout, set the range of sight to line object's width
5. make sure the vision cone is set at a low number

image:


Observed result: you cannot get line of sight to be true until you push the line further in because of inconsistent pixel measurement


Expected result: It should detect objects based on the line's width assuming its default origin is 0th image point


Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack: Windows 8.1

Construct 2 version: r158
    
B
10
S
2
G
1
Posts: 13
Reputation: 1,134

Post » Wed Jan 29, 2014 5:14 pm

I don't understand why you think this is a bug. You set the LOS behavior's line of sight to 50 pixels, and the object is clearly far more than 50 pixels away from any of its targets, so it appears to be working correctly.
Scirra Founder
B
395
S
231
G
88
Posts: 24,367
Reputation: 193,684


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests