Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 12/06/2005 23:03:08

Title: Sprites & Inventory Item Hotspot
Post by: on Sun 12/06/2005 23:03:08
Ahoy!

Ã,  Ã, I'm having a problem with using a sprite for an inventory item hotspot.Ã,  What I want to do is use a cross-hair sprite that I have.Ã,  I import the sprite and all seems well (btw I am using hi-color).Ã,  The transparent color is correct.Ã,  On the inventory screen in AGS, I select the inventory item and then select the sprite I'm going to use (#6)
Ã,  Ã, Then, when I play the game, things get weird.Ã,  I click on an item in my inventory to select it, and on the screen where the inventory item+cross-hair should have been, I see the inventory item with a 10x10 square  in it(the size of the sprite) with vertical stripes!
Ã,  Ã, Has anyone else had this problem?

Thanks!

BenÃ, 
Title: Re: Sprites & Inventory Item Hotspot
Post by: Akumayo on Mon 13/06/2005 01:21:28
that sounds...odd.  Make sure you gave the right item (the crossheir) and that you used the right spriteslot, but it sounds like you've done both of these already.

Try deleting the sprite and the inventory item, then re-loading/making both.  Maybe refreshing the coding would solve whatever the error is?
Title: Re: Sprites & Inventory Item Hotspot
Post by: on Mon 13/06/2005 02:16:18
Aha, I think I figured it out.  My problem was not with the crosshairs sprite or with my inventory item, but because I had used the default game.  Eventhough I changed to hi-res, the key that comes with the default game is still set to 256 colors.  I re-did that sprite with the correct hi-resolution and it works.

Thank ya, :P
Ben