SOLVED: Get rid of inv mouse cursor after use

Started by barefoot, Tue 23/11/2010 10:25:54

Previous topic - Next topic

barefoot

Hi

i have it so that when you use an active inventory item on a hotspot an object becomes visible. The mouse cursor changes to walktomode but the inv graphic is still there when you click through, i need to delete it so it no longer appears on the cusor. I have tried various modes etc but am stuck on this, more than likely a simple line of correct code I have yet to come across.

Code: ags

if (player.ActiveInventory == iKey)
        object[2].Visible = true;
        mouse.UseModeGraphic(eModeWalkto);
        cwilly.Say("Yes, got it!!")


Help appreciated

barefoot

I May Not Be Perfect but I Have A Big Heart ..

Dualnames

Code: ags

if (player.ActiveInventory == iKey)
        player.ActiveInventory=null;
        object[2].Visible = true;
        mouse.UseModeGraphic(eModeWalkto);
        cwilly.Say("Yes, got it!!")


That should do it.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

barefoot

Cheers Dualnames

I thought it had to be that simple   :=

barefoot
I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk