Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: steptoe on Fri 27/01/2012 08:02:10

Title: ERROR POSTING Open gui from inventory item click
Post by: steptoe on Fri 27/01/2012 08:02:10
Hi

ERROR.. GOT DOUBLE POSTING FOR SOME REASON.

Is there a reason why inv click only works with Look/Select?

I am trying to select an inv object which opens up a gui. This works when I select Look, the gui appears. I would rather it happen when inv item is seleted.

inv=icompass
gui=gcompass

The gui compass has a close button.

Would this be acceptable if i had this and made inv  image transparant?:


function repeatedly_execute_always()
{
if (cjonesy.ActiveInventory==icompass)
{
gcompass.Visible=true;
}
}




cheers for any help