Falsely reported collision on restart of layout

Bugs will be moved here once resolved.

Post » Mon Mar 23, 2015 12:45 am

Problem Description
A collision is being falsely reported on start of layout when I immediately restart a layout due to a collision

Attach a Capx
Got a SQL error when attaching a capx. Here's a link to my capx: https://www.dropbox.com/s/8wgrs1vw3rko1 ... .capx?dl=0

Description of Capx
This capx gives you control of a "Player" object with Platform behavior. The "Player" can interact with 3 objects that have the "Solid" behavior:
  • Normal - Nothing special. Normal solid.
  • Hazard - A hazard that will cause the player to "die". As of right now, death simply results in an immediate restart of layout. I assume this is a perfectly reasonable way to handle a quick restart.
  • SolidTrigger - This solid will "light up" the first time it's touched. This happens to be an easy way to communicate a collision in this demo.

    There are two layouts. One that easily communicates the bug when you follow the reproduction steps and one that showcases normal interaction

Steps to Reproduce Bug
Scenario A
  • Start with the "BUG - Prelit Platform" layout
  • Drop down the right side of the starting platform.
  • The player should land on a Hazard directly above the leftmost SolidTrigger (this SolidTrigger may light up)
  • The layout will immediately restart
Scenario B
  • Start with the "BUG - Prelit Platform" layout
  • Run full speed to the right
  • The player should land on a Hazard directly above the second SolidTrigger from the left (this SolidTrigger may light up)
  • The layout will immediately restart

Observed Result
Scenario A - The second SolidTrigger from the left starts as lit when the layout restarts
Scenario B - The leftmost SolidTrigger starts as lit when the layout restarts

Expected Result
I expect all the SolidTriggers to start as un-lit when a layout restarts.

Affected Browsers
  • Chrome: YES (Scenario B)
  • FireFox: YES (Scenario B)
  • Internet Explorer: YES (Scenario A & B)

Operating System and Service Pack
Windows 8.1

Construct 2 Version ID
r200 64-bit
B
22
S
7
Posts: 17
Reputation: 2,081

Post » Mon Mar 30, 2015 4:02 pm

I can see a different object lighting up, but is there any way you could simplify the .capx at all? If it's just 2-3 objects and it reproduces right away without having to interact, it would be a lot easier to investigate.
Scirra Founder
B
362
S
216
G
75
Posts: 23,064
Reputation: 180,315

Post » Mon Mar 30, 2015 6:27 pm

Ok. I should be able to do this. Will take a day or two.
B
22
S
7
Posts: 17
Reputation: 2,081

Post » Thu Apr 02, 2015 2:55 pm

Ok here's what I got: https://www.dropbox.com/s/ado2pc0kbr5wv ... .capx?dl=0

  • Removed extraneous layout
  • Removed extraneous objects in problematic layout
  • MInimized interactivity needed. Platform behavior starts as disabled on start of layout. Press any key to enable Platform behavior. This will cause "Player" object to land on "Hazard" object which will restart layout (once again, disabling Platform behavior). I still require you to press a key just so that there's a "pause" at the beginning to see the effect of the last "death"
  • Tested in IE. About 80% of the time the second platform will be highlighted. I can't get it to reproduce 100% yet but honestly I'm pretty surprised I got it to reproduce this often. At first I was seeing it 1% of the time in one the layouts I was building. It was nagging me enough then but I'm thankful I was able to get a layout like this where I can reproduce it very consistently

I hope that this is enough.
B
22
S
7
Posts: 17
Reputation: 2,081

Post » Mon Apr 13, 2015 1:25 pm

Thanks for the simpler repro. I managed to track down the issue and it should be fixed for the next build.
Scirra Founder
B
362
S
216
G
75
Posts: 23,064
Reputation: 180,315

Post » Sat Apr 18, 2015 2:30 am

Sweet. Thanks for the update.
B
22
S
7
Posts: 17
Reputation: 2,081

Post » Tue Apr 21, 2015 3:02 am

Sweet.
B
69
S
19
G
9
Posts: 639
Reputation: 8,989


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests