LOS bug: inconsistent pixel measurement in range

0 favourites
  • 2 posts
From the Asset Store
Match same tiles with each other as fast as you can and earn more score during a limited time!
  • Link to .capx file (required! If link is blocked remove the http and www parts):

    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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

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