Problem Description
Line of sight seems only to take object origin into consideration and not object bounding box. Therefore line of sight checks do not work very well with a narrow scope.
I'm trying to build a laser with a very narrow scope for a schmup and LOS would work great if not for lack of bounding box checks.
If this is the intended behavior, it's somewhat counter-intuitive.
Attach a Capx
Here's the .capx
Description of Capx
The capx has test boxes for which the laser should size according to the wall it has hit, otherwise reach the top of the screen. You can control the player position with arrow keys.
The origin point for these walls is in the bottom right corner of each instance.
Steps to Reproduce Bug
- Use arrow keys to move the laser about
- Notice how the laser only reacts when in line of sight of the origin point (shooting the bottom right corner of any given wall)
Observed Result
The laser shoots through walls even though they are blocking line of sight, unless shooting directly at the origin point.
Expected Result
The walls should block the laser at any point of the wall.
Affected Browsers
ALL
Operating System and Service Pack
Window 8.1 Pro, 64-bit
Construct 2 Version ID
beta r169