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.
If you don't have a walk area he can't move.
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.
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 :(
gGuiScriptName.Visible = false;
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.
Suggestion: replace GUIOn and GUIOff functions with gScriptName.On(); and gScriptname.Off();.
nah, that wouldn't be consistent with everything else....