Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Ghostlady on Sat 04/04/2009 21:26:52

Title: Inv Item different on Gui than in Rooms and on Cursor
Post by: Ghostlady on Sat 04/04/2009 21:26:52
I have an inventory item that is placed in a room and it looks fine.  When it goes into the inventory, the item now has white edges.  If I select the item from inventory and hold it on the cursor, the white edges disappear.  I am a little confused over why this is happening and how it can be fixed.  See sample.  The top fishbowl is in the inventory gui.  The bottom fishbowl is on the cursor.

(http://www.mysterymanor.net/junk/Sample001.jpg)
Title: Re: Inv Item different on Gui than in Rooms and on Cursor
Post by: LimpingFish on Sat 04/04/2009 22:46:34
It has something to do with alpha-blending (the smoothing of a sprite's edges based on it's transparent property) not being supported when used with inventory/gui sprites.

I think. Not sure whether it has been addressed in the latest versions of AGS.
Title: Re: Inv Item different on Gui than in Rooms and on Cursor
Post by: Shockbolt on Sun 05/04/2009 22:02:35
I had the same problem with my Inv items when the edges weren't "clean" or sharp if You want.
It didn't help in any way, no matter what color I chose to set as transparent color.
After a few trial and errors, I found a way for it to work close to how I wanted my Inv items to appear, without the white/artifacts around their edges.

What I did was creating a dark border around the Inv item sprites and that fixed it for my game.
Title: Re: Inv Item different on Gui than in Rooms and on Cursor
Post by: Ghostlady on Sat 11/04/2009 03:19:04
Thanks for that, I'll try it.