Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rd27 on Wed 26/10/2005 19:08:42

Title: Disable walking [SOLVED] (Suggestion inside)
Post by: Rd27 on Wed 26/10/2005 19:08:42
How can I disable walking in my game?
I have this situation: I want that the player character can't walk, the walking is disabled, but how can I do this, or can itbe done at all?

I remember doing something like this in older versions, but I can't do it in 2.7  :P. I have checked the manual but did not find solution.

Thanks.
Title: Re: Disable walking
Post by: Candle on Wed 26/10/2005 19:20:29
If you don't have a walk area he can't move.
Title: Re: Disable walking
Post by: Ashen on Wed 26/10/2005 19:53:47
The upshot of which would be, you could use RemoveWalkableArea(area) to temporarily disable walking. Also, mouse.DisableMode(eModeWalkto) might so the trick - should just disable Walk mode, meaning other characters would still be able to move around. Look 'em up if you need more details.
Title: Re: Disable walking
Post by: Rd27 on Thu 27/10/2005 18:44:07
Thanks, problem solved.

I forgot to ask in the first post this:
How do I disable GUI:s in this newest version?
I managed to do that in old ags but not in 2.7 version. I have read the manual, find the answer there, but I can't still Disable/hide the GUIS  :(
Title: Re: Disable walking
Post by: Elliott Hird on Thu 27/10/2005 18:48:12
gGuiScriptName.Visible = false;
Title: Re: Disable walking
Post by: Ashen on Thu 27/10/2005 18:50:25
Read the manual. GUI Properties (http://www.adventuregamestudio.co.uk/manual/GUIFuncsAndProps.htm). You'll want .Visible (as Elliott said, and which should still be linked to by GUIOn/Off) and/or possibly .Clickable.
Title: Re: Disable walking
Post by: Elliott Hird on Sat 29/10/2005 12:55:45
Suggestion: replace GUIOn and GUIOff functions with gScriptName.On(); and gScriptname.Off();.
Title: Re: Disable walking
Post by: edmundito on Sat 29/10/2005 17:53:39
nah, that wouldn't be consistent with everything else....