Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Zoo977 on Sat 24/11/2012 18:57:15

Title: Strange inventory glitch
Post by: Zoo977 on Sat 24/11/2012 18:57:15
Most of the scripts in the game I'm working on are working fine, but there's a rather arbitrary problem when you try to interact wiht an inventory item, or when you try to pick up an inventory item. This is how the game normally looks.

(http://i1217.photobucket.com/albums/dd381/zoo977/Glitch1.png)

If you try to interact with an inventory item, it will change to the inventory cursor instead. But more confusing than that is what happens when the cursor is changed to the inventory cursor;

(http://i1217.photobucket.com/albums/dd381/zoo977/Glitch2.png)

It seems as if a resized image of the inventory item in question is stretched over the text bar! Is this a normal problem, or must there be some deeper reason?
Title: Re: Strange inventory glitch
Post by: MurrayL on Sat 24/11/2012 20:05:47
As obvious a starting point as this may seem, what controls are on the text bar GUI and what do they do?
Title: Re: Strange inventory glitch
Post by: selmiak on Sun 25/11/2012 01:43:41
I'm afraid these cute looking tigers will eat me...
Title: Re: Strange inventory glitch
Post by: Khris on Sun 25/11/2012 09:13:46
Looks like this happens due to the use if (INV):
http://www.adventuregamestudio.co.uk/manual/Inventory.htm
(Look at the the third to last paragraph.)

Basically, the default game replicates the old Sierra interface which had a button for every cursor mode. The inventory button displays the active inventory item.
Are you using a button to color the GUI or something like that?
Like MurrayL said, how are the controls set up?
Title: Re: Strange inventory glitch
Post by: Zoo977 on Sun 25/11/2012 12:52:24
Thank you both for offering help, but it turns out that as simple as replacing the text bar with an identical button was enough to cover up this glitch. The page Khris pointed me to was enough to help out with this. Once more, thank you both.
Title: Re: Strange inventory glitch
Post by: Khris on Sun 25/11/2012 18:27:02
Do you mean replacing it with an identical GUI?
Or do you actually use a GUI-sized button? Why?