Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: PatientRock on Sat 22/01/2011 16:22:26

Title: @OVERHOTSPOT@ and non visible characters
Post by: PatientRock on Sat 22/01/2011 16:22:26
Using a @OVERHOTSPOT@ GUI with label to hover over hotspots (etc) and get their description. 

The problem I'm running into is that it's picking up characters who are not visible.  Is there a way to get the GUI to ignore them until they're visible?  Thanks!
Title: Re: @OVERHOTSPOT@ and non visible characters
Post by: ThreeOhFour on Sat 22/01/2011 16:28:46
Have you tried something like cInvisibleMan.Clickable = false; and then setting it to true when you are ready to have him appear?

The other alternative is to simply move the character into another room until you are ready to have them appear, although I assume you have some reason for having the characters invisible rather than located elsewhere.
Title: Re: @OVERHOTSPOT@ and non visible characters
Post by: Icey on Sat 22/01/2011 16:29:38


Or Try this to change the characters names that you dont want visible at the time.

cego.Name = "";


You can use this code to change the names back.
Title: Re: @OVERHOTSPOT@ and non visible characters
Post by: PatientRock on Sat 22/01/2011 16:35:31
Should have thought of the clickable option!  Thanks.  Yeah, the invisible characters are saying random things through a door.  Thanks all.