How do I make sprites stop fading?

1 favourites
  • 10 posts
From the Asset Store
A set of 10 pixel art animated magic effects with icons. 2 Fire, 2 Earth, 2 Wind, 2 Water, Portal, Explosion.
  • So, in the layout editor everything is fine with the sprites in the corner, but in game, at the edge of the object it just fades like a gradiant. Is there anyway to disable it?

    Thanks!

  • Sounds like you have a fade Behavior set to that Object.

    Could also be done with setting the Opacity in real time.

  • Is it a small object that you resized to be bigger? If yes - then open the Animation Editor and remove the 1 pixel-wide transparent border around the object

  • Sounds like you have a fade Behavior set to that Object.

    Could also be done with setting the Opacity in real time.

    it doesn't have the behaivor

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • We will need to see more of your code to help you out with this one ^^

  • We will need to see more of your code to help you out with this one ^^

    i'm still making the layout, so there is no code yet

  • Is it a small object that you resized to be bigger? If yes - then open the Animation Editor and remove the 1 pixel-wide transparent border around the object

    but yeah it is a small object that i made bigger, but there is no transparent border.

  • > Is it a small object that you resized to be bigger? If yes - then open the Animation Editor and remove the 1 pixel-wide transparent border around the object

    but yeah it is a small object that i made bigger, but there is no transparent border.

    I miss understood your problem... I think simple games is on the right track.

    Control click here to remove the single pixel of padding - Which will be stretched if your drag resize your image.

    I also believe smooth with try to make an image look as close as possible by blending pixels. Blending pixels with transparent can give you a semi see through look

  • Then it probably comes from edge bleeding. That explains why it looks normal in editor and looks wrong in preview. If you go to project properties - Sampling and select "Nearest" - it would probably solve this particular issue, but would also change how your game looks overall. Other than that, maybe try changing the size of this object in Animation editor. When I need a solid-color rectangle - I create a 10x10 sprite and resize this object to whatever size I need in the game, and I never had this issue.

  • Then it probably comes from edge bleeding. That explains why it looks normal in editor and looks wrong in preview. If you go to project properties - Sampling and select "Nearest" - it would probably solve this particular issue, but would also change how your game looks overall. Other than that, maybe try changing the size of this object in Animation editor. When I need a solid-color rectangle - I create a 10x10 sprite and resize this object to whatever size I need in the game, and I never had this issue.

    it worked, thanks!

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