Mouse mode don't change

Started by Meny, Thu 20/12/2007 22:48:45

Previous topic - Next topic

Meny

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!

auriond

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).

Creator

This should suit your needs:

Code: ags

mouse.Mode = eModeInternet;


I hope that's what your where looking for.

Ashen

Meny, please read the manual. It'll save you a lot of time and frustration with the little things like this.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk