Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: DazJ on Thu 31/07/2008 15:14:50

Title: Difficulty Clicking On Objects/Inventory
Post by: DazJ on Thu 31/07/2008 15:14:50
I've discovered that I have to click several times or in certain places on certain objects/inventory items before it'll activate.

For example, in my inventory GUI there is an axe. If I click the transparent area it doesn't select it. Same with the handle. If I click the actual axe-head though, it works...why is this? It's driving me crazy.

Is it something to do with the inventory icon's transparency?

If so how do I fix this?
Title: Re: Difficulty Clicking On Objects/Inventory
Post by: Akatosh on Thu 31/07/2008 16:01:51
Did you enable pixel-perfect click detection? If yes, turn it off and live in bliss.
Title: Re: Difficulty Clicking On Objects/Inventory
Post by: DazJ on Thu 31/07/2008 16:04:28
It's turned off. My objects are now clickable but my inventory items are only clickible on the actual visible drawing, not the transparent areas.
Title: Re: Difficulty Clicking On Objects/Inventory
Post by: WHAM on Fri 01/08/2008 13:41:16
An idea: If your inventory has a flat single color background (which seems reasonable, as I'd like my inventory to be as clear as possible), why not make the inventory items background with the same color and without transparencies? If you have a cool picture or a gradient in the inventory background, then this might not work, but I think it might actually be what you're looking for.
Title: Re: Difficulty Clicking On Objects/Inventory
Post by: Mazoliin on Fri 01/08/2008 14:09:22
Have you set the height and width of the inventory items?
Title: Re: Difficulty Clicking On Objects/Inventory
Post by: DazJ on Fri 01/08/2008 14:49:11
Quote from: WHAM on Fri 01/08/2008 13:41:16
An idea: If your inventory has a flat single color background (which seems reasonable, as I'd like my inventory to be as clear as possible), why not make the inventory items background with the same color and without transparencies? If you have a cool picture or a gradient in the inventory background, then this might not work, but I think it might actually be what you're looking for.

But the mouse cursor would be a solid picture when an item is selected? I wouldn't like the look of that.

Quote from: MazoliinHave you set the height and width of the inventory items?

Yes, I've set them but it still doesn't work. It's really bugging me.