Problem Description
Platform behaviour gets glitchy and imprecise on some situations......only if the object is organized into a subfolder!
Attach a Capx
CAPX
Description of Capx
The example presents a simple platform game situation, with a moving platform (solid object with sine behaviour), a solid block on top of it (solid + platform behaviours with default controls disabled), and a player character with platform behaviour.
Steps to Reproduce Bug
- Create a sprite with sine (linked to vertical movement) and solid behaviours.
- Create a sprite with platform (optionally disable default control so it stands still) and solid behaviours to act as a solid block and place it on top of the moving platform.
- Create a platform behaviour sprite.
- Create an object subfolder and move the player object to it.
Observed Result
With the player standing on the solid block, it lags behind the vertical movement of the platform and the block, and the "Is on floor" condition (Displayed via text at runtime on the example) acts erratically only being true at the extremes of the vertical movement when it is slower (As you can imagine, this can lead to all kind of issues on a complex project...).
At first I tought it was just a limitation with Construct and stacking stuff on moving platforms, but the thing is........It works perfectly IF YOU JUST TAKE THE PLAYER OBJECT OUT OF THE SUBFOLDER! (You can do just that on the example capx...take the player object back from "New folder" to the Object types main folder).
Expected Result
Well, at least that folder organized objects behave the exact same way as unorganized ones...This could be a pretty serious bug...who knows what else may not work properly just because being into a sub folder?
Affected Browsers
- Chrome: (YES)
- FireFox: (YES)
Operating System and Service Pack
Windows 7 Sp1
Construct 2 Version ID
r244 64-bit (A friend of mine still uses r237 and reproduced the bug)