Disable mouse mode problem with eModeLookat still showing

Started by barefoot, Thu 04/08/2011 09:41:29

Previous topic - Next topic

barefoot

Hi

I'm not sure what's happening because eModeLookat still shows on mouse, rest are ok. I would like to have no mouse modes shown until the next room. All help appreciated.

Code: ags

function room_Load()
{
        mouse.DisableMode(eModeWalkto);
	mouse.DisableMode(eModeInteract);
	mouse.DisableMode(eModeTalkto);
	mouse.DisableMode(eModeLookat);
}


cheers

barefoot

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

arj0n


Icey


barefoot

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

monkey0506

To be entirely clear you can disable the current mouse mode, but if there's no other modes enabled, then it's not going to be able to change it to anything else. In fact, IIRC it wouldn't automatically change it anyway.

As has already been pointed out though, what you really wanted to do was just hide the mouse, not disable every mode.

barefoot

Hi Monkey

yes, hiding the mouse is the best and easiest thing to do in most cases.

I got around it by changing eModeLookat graphic with a transparent image.

Crude but works. Obviously I will need to look at other methods.

cheers

barefoot



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

monkey0506

You got around what?? You can set mouse.Visible = false; which does exactly what you wanted to do (hide the mouse), and even if the cursor mode was explicitly changed, it would still not be visible. With your "workaround" if the cursor mode was changed elsewhere in the script, it would suddenly become visible again. :-\

barefoot

Hi Monkey

parts of the game requires mouse.Visible = false; and some scenes don't.

I will be using mouse.Visible = false/true; from now on instead of my workaround (transparent image for LookAt)..

cheers   :=

barefoot


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

SMF spam blocked by CleanTalk