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.
function room_Load()
{
mouse.DisableMode(eModeWalkto);
mouse.DisableMode(eModeInteract);
mouse.DisableMode(eModeTalkto);
mouse.DisableMode(eModeLookat);
}
cheers
barefoot
mouse.Visible
= false; :D
cheers
:=
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.
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
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. :-\
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