Set From JSON destroys sprites if layouts are switched

Bugs will be moved here once resolved.

Post » Fri Mar 13, 2015 12:40 am

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
You do not have the required permissions to view the files attached to this post.
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Tue Mar 17, 2015 2:45 am

It seems the bug is still present in r200
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Mon Mar 30, 2015 1:19 pm

Thanks, should be fixed in the next build.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Mon Mar 30, 2015 4:17 pm

Thank you!
B
14
S
5
G
1
Posts: 189
Reputation: 1,536


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest