Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MRollins on Wed 05/03/2008 23:04:51

Title: Hotspots only works when I click in certain areas
Post by: MRollins on Wed 05/03/2008 23:04:51
I have created several hotspots but they only respond when I click on certain parts of them. Once hotspot only responds when I click on the right half and another only responds when I click in the extreme upper left corner. I am using function hNewGame_AnyClick() for the one that only respondes to the upper left corner and I am using function hHotspot1_Interact() for the one that only responds to clicks on the right side.

Does anyone know why hotspots wouldn't respond when clicked on anywhere?
Title: Re: Hotspots only works when I click in certain areas
Post by: OneDollar on Wed 05/03/2008 23:23:01
Have you checked the hotspot x and y positions on your mouse cursors (shown by a dot or a cross on the cursor preview)? This is the area that the game will treat as the 'clicking point' of the cursor, so if its in a different place than you thought it was, you might not actually be clicking on the room hotspots.
Title: Re: Hotspots only works when I click in certain areas
Post by: MRollins on Wed 05/03/2008 23:35:08
Yes I have checked those. These hotspots are very large so that's why it's so weird.
Title: Re: Hotspots only works when I click in certain areas
Post by: Akatosh on Thu 06/03/2008 15:47:27
Are they probably partially overlapped by a GUI or a huge object? That blocks out clicks on the background, even if it's just the transparent parts that are hovering over your hotspot.
Title: Re: Hotspots only works when I click in certain areas
Post by: MRollins on Thu 06/03/2008 23:00:28
Ah, that makes sense. I din't know that hotspots could be blocked by objects or walkable areas. Thanks!
Title: Re: Hotspots only works when I click in certain areas
Post by: Akatosh on Fri 07/03/2008 17:02:30
Walkable areas don't block them out... objects, however, do. You're welcome, though.  ;)