Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Meny on Thu 20/12/2007 22:48:45

Title: Mouse mode don't change
Post by: Meny on Thu 20/12/2007 22:48:45
I tried to change the mouse mode.
This what I had tried -

mouse.UseModeGraphic(eModeInternet);
mouse.DisableMode(eModeLookat);
mouse.DisableMode(eModeTalkto);
mouse.DisableMode(eModeInteract):

The player can't move in this room so I don't disable the walk.
Instead of to do what I wish for, it stays on Interact mode and all the others modes are disabling.

Thank you for your help!
Title: Re: Mouse mode don't change
Post by: auriond on Fri 21/12/2007 00:35:25
Your code only changes the graphic to eModeInternet, but the action is probably still on Interact. You would need to use mouse.EnableMode(eModeInternet) to use that mode (assuming you have already set it up in your Cursors section).
Title: Re: Mouse mode don't change
Post by: Creator on Fri 21/12/2007 00:53:45
This should suit your needs:


mouse.Mode = eModeInternet;


I hope that's what your where looking for.
Title: Re: Mouse mode don't change
Post by: Ashen on Fri 21/12/2007 10:42:25
Meny, please read the manual. It'll save you a lot of time and frustration with the little things like this.