Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: sloppy on Tue 15/11/2005 14:59:42

Title: Enlarging object hotspot
Post by: sloppy on Tue 15/11/2005 14:59:42
Is there a way to make the hotspot on a small object easier to interact with?  Make it bigger or more locations on the object? 

Right now I have a piece of string on the floor that the character has to pick up.  But you have to put the hand icon on the exact right place for the interaction to work.  Anyone playing the game for the first time would try it once or twice and then conclude nothing's supposed to happen if they don't postion the hand icon exactly right.
Title: Re: Enlarging object hotspot
Post by: Ishmael on Tue 15/11/2005 15:53:00
Unchecking the pixel-perfect click detection option in the general settings should do it, but that will effect all objects and characters through the game.
Title: Re: Enlarging object hotspot
Post by: sloppy on Tue 15/11/2005 16:06:54
And there's no way to do that for just certain objects?
Title: Re: Enlarging object hotspot
Post by: Scummbuddy on Tue 15/11/2005 17:10:11
well,  you could not do object interactions, and just draw a real hotspot above the string image, and then do your interactions with the larger hotspot. when "pick up" disable object image on screen.
Title: Re: Enlarging object hotspot
Post by: sloppy on Tue 15/11/2005 17:17:28
I never thought of that.  Thanks!
Title: Re: Enlarging object hotspot
Post by: strazer on Tue 15/11/2005 19:07:11
Quote from: sloppy on Tue 15/11/2005 16:06:54
And there's no way to do that for just certain objects?

Not yet: http://www.adventuregamestudio.co.uk/tracker.php?action=detail&id=170
Title: Re: Enlarging object hotspot
Post by: Janik on Tue 15/11/2005 19:54:08
If you don't want to make the interactions twice (once for the hotspot, again for the string) you can set the object non-clickable, like so:

oString.Clickable = false;

Any clicks will go thorugh the object onto the hotspot behind it.
Title: Re: Enlarging object hotspot
Post by: sloppy on Tue 15/11/2005 21:27:28
Quote from: Janik on Tue 15/11/2005 19:54:08
If you don't want to make the interactions twice (once for the hotspot, again for the string) you can set the object non-clickable, like so:
oString.Clickable = false;
Any clicks will go thorugh the object onto the hotspot behind it.

Thank you!
Title: Re: Enlarging object hotspot
Post by: sloppy on Tue 15/11/2005 22:51:38
I'm having a similar problem with inventory objects.  Each object has this one little hotspot, and when I want to use one inventory object with another, it takes about 5 tries.  And that's if you know something's supposed to happen. 

Is there something that can makes it easier to use inventory items with other items?
Title: Re: Enlarging object hotspot
Post by: Elliott Hird on Wed 16/11/2005 11:58:24
In the inventory window, look at the crosshair thingy.