Line of Sight does not get mirrored

Bugs will be moved here once resolved.

Post » Sat Jul 27, 2013 12:47 am

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/38658788/PlatformLOS.capx

Steps to reproduce:
1. Create a player with Platform and Line of Sight behaviour
2. Set the Line of Sight range and cone of view (e.g. 600/120 respectively)
3. Mirror the player sprite (press 'left arrow' in the capx)

Observed result:
The line of sight behaviour does not get mirrored when the player sprite is mirrored. The objects behind the player are still 'seen'. Objects in front of the player are undetected.

Expected result:
When the player sprite is mirrored, the line of sight should also be mirrored so that the line of sight and player direction is aligned.


Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes/no - untested

Operating system & service pack:
Windows 7 Home Premium SP1

Construct 2 version:
Release 139
    
B
18
S
6
G
2
Posts: 57
Reputation: 2,469

Post » Sun Aug 04, 2013 7:53 pm

Don't use "Mirrired" action :)
Everything works fine if you make this:

on left arrow pressed -> player set angle 180 degrees
on right arrow pressed ->player set angle 0 degrees
B
13
S
4
G
2
Posts: 22
Reputation: 1,506

Post » Mon Aug 05, 2013 5:24 pm

I've changed this for the next build so it works. Hopefully it won't break any existing projects, though - it was designed only to use the object angle.
Scirra Founder
B
384
S
227
G
86
Posts: 24,139
Reputation: 190,751


Return to Closed bugs

Who is online

Users browsing this forum: shubhamrathi9 and 0 guests