Strange inventory glitch

Started by Zoo977, Sat 24/11/2012 18:57:15

Previous topic - Next topic

Zoo977

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.



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;



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?
☆**☆.ãâ,¬â€š.:*ãÆ'»ã‚Å"☆.ãâ,¬â€š.*  s  u  f  f  e  r  i  n  g .ãâ,¬â€š.☆ã‚Å"ãÆ'»*:.ãâ,¬â€š.☆**☆.ãâ,¬â€š

MurrayL

As obvious a starting point as this may seem, what controls are on the text bar GUI and what do they do?

selmiak

I'm afraid these cute looking tigers will eat me...

Khris

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?

Zoo977

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.
☆**☆.ãâ,¬â€š.:*ãÆ'»ã‚Å"☆.ãâ,¬â€š.*  s  u  f  f  e  r  i  n  g .ãâ,¬â€š.☆ã‚Å"ãÆ'»*:.ãâ,¬â€š.☆**☆.ãâ,¬â€š

Khris

Do you mean replacing it with an identical GUI?
Or do you actually use a GUI-sized button? Why?

SMF spam blocked by CleanTalk