ShadowLight object broken after loading

0 favourites
  • 2 posts
From the Asset Store
Hand-painted tiles, objects, animated objects, and background to build a colorful Mayan civilization environment.
  • Problem Description

    ShadowLight object broken after loading (official save action), only if switching layouts in between.

    Attach a Capx

    http://badpadgame.com/shadowLightBug.capx

    Description of Capx

    2 layouts, using keyboard nums 1-3 to trigger events.

    key 1 - saves, on saved complete switching layout, on start of layout loading saved game.

    key 2 - saves, on saved complete loading saved game without layout switching.

    key 3 - restarts layout.

    Steps to Reproduce Bug

    • Press 1 on the keyboard to trigger the event, see that the shadows flips.
    • Press 3 on the keyboard to restart layout, shadow is displayed correctly.

    Observed Result

    The shadow flips, in my case it gets even more broken.

    Expected Result

    Shadows should render the same after loading, perhaps a 're-render shadows' action to run on load complete, or just do it automatically.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 10 Pro

    Construct 2 Version ID

    Stable Release (r259)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Update!

    I noticed in the debugger that the ShadowLight object's position is centered to the viewport in runtime, so it's probably saved with these values and not the original.

    Fortunately in 'on start of layout' the ShadowLight object position is still not affected, so if I save the X Y of the object, then set it back after loading, it fixes the issue.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)