Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 06/10/2003 19:30:20

Title: Object invisible but....
Post by: on Mon 06/10/2003 19:30:20
Ho un oggetto invisibile....  
Quando il cursore del mouse passa su un hotspot, l'oggetto deve comparire...Ma dopo che il cursore si trova fuori dalle coordinate dell'hotspot, l'oggetto deve scomparire.  
Come fare?
Title: Re:Object invisible but....
Post by: on Mon 06/10/2003 19:31:51
Ehm, sorry... You read under:  
I have an invisible object....    
When the cursor of the mouse passes on a hotspot, the object has to appear ...Ma after the cursor is found out of the coordinates of the hotspot, the object has to disappear.    
How to do?
Title: Re:Object invisible but....
Post by: on Mon 06/10/2003 19:57:32
Under the hotspots interaction menu, set the "Mouse is over hotspot" to "Object on" and specify which object.
Title: Re:Object invisible but....
Post by: on Tue 07/10/2003 17:56:11
Yes, but after the cursor is found out of the coordinates of the hotspot, the object doesn't dissapear...
Title: Re:Object invisible but....
Post by: SSH on Tue 07/10/2003 18:12:41
Put this in your room's repeatedly_execute interaction (run_script)

if (GetHotspotAt(mouse.x,mouse.y)==YOURHOTSPOTNUMBER)
{
ObjectOn(YOUROBJECTNUMBER);
} else {
ObjectOff(YOUROBJECTNUMBER);
}