Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Shockbolt on Sat 04/04/2009 18:33:06

Title: Crosshair sprites with inventory items not working properly [SOLVED]
Post by: Shockbolt on Sat 04/04/2009 18:33:06
I've made a sprite to be used as a crosshair sprite with my inventory items.

Trouble is that when I apply this sprite in the game settings(having set the option and
selected the .png file for the crosshair), the crosshair sprite area(the crosshair sprite) is subtracted
from the inventory item sprite image, leaving an empty space where it(the crosshair sprite) should've been.
Not a single pixel from the crosshair is seen.

What's causing this problem?
Title: Re: Crosshair sprites with inventory items not working properly
Post by: Scummbuddy on Thu 09/04/2009 01:40:01
Are importing the sprite with the transparent color already selected within ags editor? Or is part of the crosshair in one of the corners of the import box?

Another thing to try, save the crosshair image as a gif allowing for transparencies and import that image, while selecting the appropriate color as the transparent color.
Title: Re: Crosshair sprites with inventory items not working properly
Post by: Shockbolt on Thu 09/04/2009 16:12:21
I went back to the PSD file and saved the crosshair sprite as a transparent GIF instead.
When I imported it, using the new Gif sprite instead of the PNG, it worked as it should.

Thanks!