Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: .. on Sun 25/04/2004 14:30:30

Title: Problems with my BS Style Interface
Post by: .. on Sun 25/04/2004 14:30:30
I made an interface which is like broken Sword (Kind of).

It has an inventory GUI At the top and I made all the different cursor modes and then used the command mouse moves over hotspot and the action RunScript which contains
SetCursorMode(1); etc.. so that when you hover over something it changes the mode to what you can do with it.
That part works fine, perfectly.

The problem is when I want to use an Inventory Item on something the mode changes to interact or whateva when I hover over it, so I can't use the inventory on it.
So I have a pot and when you hover over it the cursor changes to interact. When I want to use something with that pot, i click on the item in the inventory and then drag it down over the pot but when it goes over the pot, the cursor mode changes to interact.

Is there a way around this? Or am I going to have to find a new way to change the cursor mode or even just scrap the BS Style Idea?
Title: Re:Problems with my BS Style Interface
Post by: strazer on Sun 25/04/2004 16:00:51
Just make the SetCursorMode conditional:

 if (GetCursorMode() != MODE_USEINV) { // any mode but inventory item
   // SetCursorMode... etc. here
 }
Title: Re:Problems with my BS Style Interface
Post by: on Sun 25/04/2004 16:30:46
Yup, strazer's got it. I posted a link to a test game I made in the 'Help with Cursor' thread, which seems to have moved.

http://www.geocities.com/whoismonkey/Cursor.zip

has the basic codings, and bad graphics.
Title: Re:Problems with my BS Style Interface
Post by: .. on Sun 25/04/2004 16:41:46
Thanks, Works like a charm.