Problem Description
Top/bottom collision between a falling player controlled object (Platform behaviour) and a static Solid object consistently does not trigger when the Solid object is at a very specific location
Attach a Capx
Minimal capx with only 3 object types and 5 instances :
https://dl.dropboxusercontent.com/u/526 ... onBug.capx
Description of Capx
Minimal sample scene : 1 ground, 1 player, 3 blocks
- brown = static Solid used as ground
- yellow block = player controlled, uses the default Platform behaviour
- red block = static Solid (could be an enemy, a platform, etc.) to demonstrate the bug
Logic is simplistic : flash the player object (1second) when an Enemy/Player collision is triggered
Steps to Reproduce Bug
- Move right and jump on the first block (#1) ; notice a collision is triggered and the player object flashes as expected
- Wait for the flash to stop
- Jump right onto the next block (#2) ; notice the player object doesn't flash as a collision is NOT triggered
- Jump right onto the last block (#3) ; notice a collision is triggered and the player object flashes as expected
- In the editor, move red block #2 (the one not triggering the collision) up or down a bit ; test again, this time it does trigger the collision properly
Also notice that collisions from the sides (left/right) or from below (player jumping into red block #2 from below) always work consistently
This unexpected "falling/top collision" behaviour only happens when a red block is at y=524 ; there are other specific y values showing the problem as well but I believe they are all instances of the same issue
Observed Result
Collisions are not triggered consistently depending on the position of the objects
Expected Result
Collisions should be triggered consistently regardless of the positions of the obects
Affected Browsers
- Chrome: YES
- FireFox: ? (don't have)
- Internet Explorer: ? (don't have)
Opera: YES
Edge: YES
Operating System and Service Pack
Windows 10 Pro 64b
Construct 2 Version ID
212.2 64b Steam
Edit: updated affected browsers