Set From JSON destroys sprites if layouts are switched

0 favourites
  • 4 posts
From the Asset Store
Toggles Dials Switches and Alerts ! A foundational sound grouping of Analog type switches and Steampunk effects
  • Problem Description

    JSON strings created with Sprite.asJSON

    Attach a Capx

    Yes

    Description of Capx

    The demo allows you to create sprites with C. You can manipulate them by clicking, and destroy them by right clicking. Press S on a sprite to save it, then press L on another sprite to give it the same position, color, and instance variables as the first sprite. Click the button to change layout.

    Steps to Reproduce Bug

    • Press C to create a sprite
    • Click on the sprite to change it's instance variables
    • Press S on the sprite to save it as a JSON string.
    • Click the button to change layouts
    • Press C to create a new sprite
    • Press L on sprite to load JSON data into sprite
    • ???
    • Sprite is Gone?

    Observed Result

    Sprite Disappears instead of loading from JSON

    Expected Result

    I expect the sprite to take the same position, color, and instance variables that it has on the layout where it was saved.

    Affected Browsers

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

    Operating System and Service Pack

    Windows 7 SP1

    Construct 2 Version ID

    r199 + r200

  • It seems the bug is still present in r200

  • Thanks, should be fixed in the next build.

  • Try Construct 3

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

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

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