Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: dbuske on Thu 11/11/2010 20:01:11

Title: Pink background around character in game
Post by: dbuske on Thu 11/11/2010 20:01:11
After I edited the character sprite to make it taller, when I run the game, the pink shows around the character in game.
How do I get rid of the pink?
Title: Re: Pink background around character in game
Post by: barefoot on Thu 11/11/2010 20:38:21
Hi

you need to check around your sprite(s) in a paint program to make sure everything that should be transparent is!

ie: if red is transparent colour then make sure everything you dont want to see is actually red... or whatever colour you have selected as transparent otherwise all the other colours will show... and check that you DO NOT use 'leave as it is' when you import..

this often happens...

barefoot
Title: Re: Pink background around character in game
Post by: tzachs on Thu 11/11/2010 21:55:49
If you use alpha in your image (and if you scaled it you probably do), and your game is not in 32 bit mode (you can see it in the general settings pane), then you will see pink because alpha is only supported in 32 bit mode.
Title: Re: Pink background around character in game
Post by: Ryan Timothy B on Fri 12/11/2010 04:52:05
Quote from: dbuske on Thu 11/11/2010 20:01:11
After I edited the character sprite to make it taller, when I run the game, the pink shows around the character in game.
How do I get rid of the pink?
If you've resized the sprite with Bilinear or Bicubic filter, it will create a pinkish haze around the character. This is what I'm guessing you did.

If your sprites aren't alpha transparent, using the alpha transparency instead of Pink, the only resize that is friendly is Nearest Neighbor resizing. Otherwise you'll have a pink haze. The pink color must be EXACTLY 255, 0, 255. If it's one off, you'll see pink in game.