Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dirty harry on Sun 24/11/2013 22:56:09

Title: Can´t pick item from Iventory bar.
Post by: Dirty harry on Sun 24/11/2013 22:56:09
Hello guys.Here...again.
I have read a lot of posts about problems on pick up items on iventory.Just tried many soluctions
from the forum with no good results.
I have a item on my Iventory bar,it's a flower pot(draw on MS Paint,size 30 pixels width and 39 height,Bitmap 24bits).
The item was much more large before and i could pick it on Bar after 3 or 4 attempts.
By the forum suggestions i have reduced it's size and now,no way i can pick it.Don't move!

VERY IMPORTANT: I have already set the cursor hotspot exactly in the middle of the pot and the hotspot on the mouse cursor it's set on the middle of it.

The settings:

(Iventory item 4)
CursorImage  24
Description  Pot
HotspotX     23(exactly on the middle of the item)
HotspotY     32
ID           4
Image        24
Name         iPot
PlayerStartsWithItem   False
Properties             (Properties)

gInventory(NormalGUI 2)
BackgroundColor     grey 168;168;168
BackgroundColourNumber   7
BackgroundImage          -1
BorderColor Grey84;84;84
BorderColourNumber  8
Clickable    False
PopYPos      0
Transparency 0
Visibility   Pause game when shown
Design
ID           2
Name         gInventory
Layout
Height       260
left         100
Top          70
Widht        440

My AGS is 3.2 version,defaut game with no modifications on GUI,except for the custom pot sprite.
I have played a lot of indie adventure games and it's too easy to pick items on rooms and in the Iventory bar.
My friend tested my game and said is too difficult to pick objetcs.It needs so many attempts to get them!
Any help on this?

"Bad English,sorry."
Thanks.
Title: Re: Can´t pick item from Iventory bar.
Post by: Ghost on Sun 24/11/2013 23:12:44
It could be that you have the wrong size entered for the inventory window itself. Open up your GUI, click on the inventory window and check "ItemHeight/ItemWidth" in the properties window- these should be the same size as the sprites used for inventory items (which also should always be the same size).

__
To clarify: you want the "collision rectangle" in the inventory window to be the same size as the item contained in it (nod)
Title: Re: Can´t pick item from Iventory bar.
Post by: Dirty harry on Sun 24/11/2013 23:28:47
Hi,Ghost.
Your answer was exactly what i need.
Working perfectly now!
Thanks!:smiley:
Title: Re: Can´t pick item from Iventory bar.
Post by: Ghost on Tue 26/11/2013 21:30:21
;)