Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Fri 03/12/2010 11:15:15

Title: SOLVED: Cursor Mode Mouse Graphic Problem
Post by: barefoot on Fri 03/12/2010 11:15:15
Hi

UPDATE
Changed Code to:


mouse.ChangeModeGraphic(0, 167);

Seems to have done the trick..

Sorry to waste a post but maybe someone will find it usefull.

------------

I'm having a little trouble with the below mouse code..

It works showing the right graphic but does not show up on cursor immediately,
cursor displays Walk mode... How do I make it the immediate graphic instead of
clicking through to it?

mouse.ChangeModeGraphic(2, 167);

IE: you click on a character with an inventory item  the mouse curser image should change to the new graphic as above which you are meant to use on something else.

Complete code for this section:


      function ball2_UseInv()
{
if     (player.ActiveInventory == itie)
{
     
      ball2.ChangeRoom(8);
      mouse.ChangeModeGraphic(2, 167);
      player.ActiveInventory=null;
      cChris.Say("Now what do I do??!!");

}
}


All help appreciated

barefoot