Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LinkMaestro on Mon 26/05/2008 14:37:54

Title: Problem picking up objects for inventory
Post by: LinkMaestro on Mon 26/05/2008 14:37:54
I'm doing the tutorial for AGS, as I just downloaded it and started learning it the other day. I'm having some problem with object commands.  I wrote the script verbatim from the tutorial, but when I go to run the game, it seems the interact icon needs to be in one very specific spot, like down to the pixel, in order to pick the key up. is there a way to increase the area that can be clicked in in order to interact with the object?
Title: Re: Problem picking up objects for inventory
Post by: skuttleman on Mon 26/05/2008 15:12:10
In the general settings pane, there should be an option called "pixel-perfect click detection". If you set this to false, then it will detect mouse clicks anywhere on the sprite (even the transparent pixels).
Title: Re: Problem picking up objects for inventory
Post by: LinkMaestro on Mon 26/05/2008 16:17:22
Ah, thank you very much, sir! I'll give that a shot.
Title: Re: Problem picking up objects for inventory
Post by: Khris on Mon 26/05/2008 21:04:58
Alternative solution:
In the room's before fadein event, set the key object to not being clickable, then use a hotspot instead.