[r196] Setting sprite from JSON ignores sprite blend mode

Bugs will be moved here once resolved.

Post » Tue Feb 03, 2015 6:48 am

Problem Description
When saving and setting a sprite's state from JSON, blend mode isn't saved/loaded.

NOTE: This isn't something that broke recently, it was happening as far back as I've tested (r192 and before)

Description of Capx
Press keyboard buttons to save and load sprite state, and set blend mode.

Steps to Reproduce Bug
  • Step 1: Press '1' to save sprite state
  • Step 2: Press '4' to set the blend mode to additive
  • Step 3: Press '2' to load sprite state. The blend mode should switch back to normal, but doesn't.

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

Operating System and Service Pack
Win 8.1 64bit

Construct 2 Version ID
r196
You do not have the required permissions to view the files attached to this post.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,689

Post » Tue Feb 03, 2015 6:59 am

I had observed this previously as well, but in a complex project - couldn't replicate in a separate small capx. Glad to see you managed.
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Mon Apr 20, 2015 2:01 am

I'd like to bump this - it's been a few months and it's still effecting my project.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,689

Post » Tue Apr 21, 2015 2:08 pm

Well, the first mistake is that SaveState is a number, so you can't store JSON strings in it :)

After fixing that I did notice that it always reverts the blend mode to normal (a slightly different issue to what you describe). I've fixed this for the next beta.
Scirra Founder
B
398
S
236
G
88
Posts: 24,433
Reputation: 194,635

Post » Tue Apr 21, 2015 9:09 pm

Thanks Ashley!
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,689


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 6 guests