Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Dr Snark on Sun 10/08/2003 22:57:45

Title: How do click an inventort Item and make it the Button's Image?
Post by: Dr Snark on Sun 10/08/2003 22:57:45

Here is some Code i used:

 //ff=GetInvAt (mouse.x, mouse.y);
 GUIOn(3);
SetButtonPic (3, 0, 1, 100);
SetButtonPic (3, 0, 1, -1);

i know it can be done because i saw it.

and it keeps Object Not Valid?

Title: Re:How do click an inventort Item and make it the Button's Image?
Post by: cornjob on Mon 11/08/2003 12:26:06
Actually, you can do this automatically...
Just make the button's text: (INV) or (INVNS). Then the active inv item will be drawn on top of the button graphic.