For some reason, there is a gray shadow around the circle. It is a bit difficult to see on the above desktop image but the gray shadow is quite visible on mobile devices. Is there a way to remove this?
Yes, it is precisely that. Basically, after the restart of the scene the gray circle around the sprite loses its sharpness. Something like belowā¦ If there is a way to remove that gray shadow, I think the circle will look just fine.
I am very grateful for your time and help, truly huge thanks!
I agree there is no gray area in your example. In fact, I also increased the radius in my game and the gray area was not visible.
I think this is something to do with the color combination and the size of the circle.
I lowered the radius, plus made the circle and background colors differ more, which creates a pixelated outer area that looks like a gray circle. You may see it at the below links:
Your suggestion seems to work. I drew an outer circle with the background color during sprite generation. There is still a shadow effect but it softened for some reason. At least, I do not get the pixelated look after level transition.
The shadowy area is still there but the pixelation does not seem happen after restart() for some reason. At least that is what I feel is the case in my game.
Are you sure it looks different than the original one. To me they all looks the same
Also if you change the scene background I see there is no black-grayish not coded outline.
I have also realized a different thing that I will post as a new post:
As I click to restart the scene with a circle new color the non coded outline goes away. More click more it goes away. Strange.
The gray area is still there as you rightly point out but it looks softer for some reason after scene restart. In my game, when the first time the scene is loaded, the gray area looks like a shadow. However, after scene restart the edges became choppy without the outer circle. Although, it is the other way in your example; ie the shadow disappears after restartsā¦
I will play with this a bit moreā¦ Maybe, painting the outer circle with a color that transitions between the ball color and background color could help.
If you are interested in, I observe another funny behavior. I draw a triangle and keep restarting the scene, which then creates a super pixelated triangle.
Hi,
The problem is caused by reusing the same texture key from the cache several times.
You could create the texture in another scene, or destroy the texture every time you restart the scene:
Then scene restart does not clear all at the end, as I understand. Is that so?
Maybe it is the same thing causes the circle getting smoother on restart I have mentioned. Same reason causing opposite effects due to some shape and antialiasing relation in your triangle case.
I wonder why opposite effects for circle and triangular.