Sprite Gets a white outline when switching animation

Bugs will be moved here once resolved.

Post » Fri Nov 14, 2014 4:51 am

Sprite Gets a white outline when switching animation

I'm not sure this is bug. I've seen this happen before and posts about it but can't find the solutions posted.
When the animation changes the sprite gets a white outline around it in the second animation.

In this capx, I set it to switch animation on a mouse click. When the "Die" animation is triggered, the alien sprite gets a white outline. Originally, I did NOT crop the individual frames. The I cropped the frames and still have the issue. The images are the original size (not being re-sized by C2).

Just left mouse click on the screen to trigger the animation change. When animation switches to die, alien gets a white outline.


Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)
IPhone Safari
Android default and chrome browser


windows 8.1

Construct 2 Version ID
184 64-bit
You do not have the required permissions to view the files attached to this post.
Last edited by TheDom on Fri Nov 14, 2014 5:09 am, edited 2 times in total.
B
75
S
23
G
3
Posts: 673
Reputation: 9,273

Post » Fri Nov 14, 2014 4:58 am

It's in your source. Edit the sprite and switch the background colour to the dark option. The outline is in the image already. This must have come from the source. I don't see how C2 could have "added" the outline.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Fri Nov 14, 2014 5:03 am

It's not in the source. It's being caused by C2 somehow. The animation frames are already transparent backgrounds. If I create an animation with the die files separately, it works fine. It only happens when the animation changes from "default" to "die" animation.
B
75
S
23
G
3
Posts: 673
Reputation: 9,273

Post » Fri Nov 14, 2014 5:39 am

Can you provide an example of that then? I can see the white outline in frames 1 to 4 in the editor. They are not caused by the transition from default to die.
ImageImageImage
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Fri Nov 14, 2014 3:39 pm

The .capx you have provided is working correctly; the sprite artwork does indeed have a white outline as if it were rendered with alpha on to a white background, then only the exactly white sections removed around it. That's a possible mistake that's sometimes easy to make with certain tools if viewing on a light background.

Closing as no evidence of a C2 bug here. If you think at some point C2 is adding these white outlines itself during the import process, please file a new bug demonstrating the steps to reproduce, going from external images with a correct alpha channel to the images in C2 with a white outline. I suspect however this happened before importing to C2.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,250

Post » Fri Nov 14, 2014 6:09 pm

The sprite artwork does NOT have a white outline. I'm trying reproduce the exact circumstances that created the this effect. It seems to have occurred from changes to the collision boundaries and/or cropping.

Stand by...

Note: this guy is getting the same problem as me...

https://www.scirra.com/forum/viewtopic.php?f=146&t=119207
B
75
S
23
G
3
Posts: 673
Reputation: 9,273


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests