Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: barefoot on Thu 04/08/2011 09:41:29

Title: Disable mouse mode problem with eModeLookat still showing
Post by: barefoot on Thu 04/08/2011 09:41:29
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

Title: Re: Disable mouse mode problem with eModeLookat still showing
Post by: arj0n on Thu 04/08/2011 11:48:12
mouse.Visible
Title: Re: Disable mouse mode problem with eModeLookat still showing
Post by: Icey on Thu 04/08/2011 11:49:30
= false; :D
Title: Re: Disable mouse mode problem with eModeLookat still showing
Post by: barefoot on Thu 04/08/2011 16:32:41
cheers

:=
Title: Re: Disable mouse mode problem with eModeLookat still showing
Post by: monkey0506 on Fri 05/08/2011 05:07:48
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.
Title: Re: Disable mouse mode problem with eModeLookat still showing
Post by: barefoot on Sun 07/08/2011 14:50:27
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



Title: Re: Disable mouse mode problem with eModeLookat still showing
Post by: monkey0506 on Tue 09/08/2011 02:20:43
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. :-\
Title: Re: Disable mouse mode problem with eModeLookat still showing
Post by: barefoot on Tue 09/08/2011 08:59:18
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