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?
Just make the SetCursorMode conditional:
if (GetCursorMode() != MODE_USEINV) { // any mode but inventory item
// SetCursorMode... etc. here
}
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.
Thanks, Works like a charm.