Help with lines around sprites please

Not favoritedFavorited Favorited 0 favourites
  • 8 posts
From the Asset Store
Cute cartoon girl character with Walk, Jump, and Idle animations for 2D games.
  • I've scoured the forums and tried all solutions that I have been able to find. Essentially, a few of my sprites have these lines and/or boxes around them; these lines are not present when testing the project in preview, however they appear when exporting to windows build.

    I have tried all three sampling options, I have tried the different downscaling quality options (high does not resolve the issue). I have cropped transparent edges of every sprite in the project.

    Other posts I've seen have indicated that if you see these, you will see them in preview, however as I've stated these lines only appear in an export build, never in preview. Help, please.

  • To fix you need to put a 1 pixel transparent edge around your images. In the image editor the crop button does that for you.

    Without that transparent edge the colors can get sampled from beyond the edge of the image and cause the edges you are seeing. You don’t see it when previewing because each image is a separate image and there is nothing beyond the edges. However, when exporting the images are spritesheeted together into a few bigger images so now other things can be just past the edges.

  • To fix you need to put a 1 pixel transparent edge around your images. In the image editor the crop button does that for you.

    Without that transparent edge the colors can get sampled from beyond the edge of the image and cause the edges you are seeing. You don’t see it when previewing because each image is a separate image and there is nothing beyond the edges. However, when exporting the images are spritesheeted together into a few bigger images so now other things can be just past the edges.

    Thank you for your reply, but I have already done this. I actually just now discovered what the problem is, and I'm not sure how to escalate to bug report. The lines were being caused by any and all objects that had the glow horizontal or glow vertical effects on them, even if the object was at opacity 0. by deleting the effect off of all objects, I no longer get these artifacts. Unfortunately, this visual aftifact does not happen in preview and happens in Windows exports, essentially meaning i cannot use these effects in my target build, unless a dev comes along and informs me of a fix.

  • The effect likely needs to be fixed to not sample beyond the edges of the sprites. So if it’s an official bundled effect you can file a bug report for them to address.

    Again, it happens at export and not during preview because of spritesheeting.

    You possibly could work around it by adding a wider transparent border around the images the same as the glow radius. Or maybe adding the effect to a layer instead of individual sprites.

  • I have tried adding additional transparent space and such previously, however no matter where the bounds of the image, the lines caused by the glow effects simply move to those new bounds. Yes, these are the included glow horizontal and glow vertical effects included with C3. Thank you again for your help, where do I report bugs such as this?

  • I should note that I also did look at the sprite sheets taht were being packed in html exports, and also adjusted any sprites that had been packed near the effected sprites. None of this made any difference; the only thing that decidely removed the lines was deleting the effect off of the objects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There’s a stickied topic somewhere with how to report bugs. I’ve never used it though.

    I still wonder if putting all the objects on the same layer that you want to glow and adding the effect to the layer would work. I’m becoming less familiar with construct by the day though so I probably won’t get around to testing it.

    I’ll defer to anyone else that has suggestions.

  • I should note that I also did look at the sprite sheets taht were being packed in html exports, and also adjusted any sprites that had been packed near the effected sprites. None of this made any difference; the only thing that decidely removed the lines was deleting the effect off of the objects.

    Hello, please report an error.

    construct.net/en/forum/construct-3/general-discussion-7/report-bugs-amp-post-128538

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