Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Tue 23/11/2010 10:25:54

Title: SOLVED: Get rid of inv mouse cursor after use
Post by: barefoot on Tue 23/11/2010 10:25:54
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.


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


Help appreciated

barefoot

Title: Re: Get rid of inv mouse cursor after use
Post by: Dualnames on Tue 23/11/2010 10:28:45

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


That should do it.
Title: Re: Get rid of inv mouse cursor after use
Post by: barefoot on Tue 23/11/2010 10:31:54
Cheers Dualnames

I thought it had to be that simple   :=

barefoot