Disable walking [SOLVED] (Suggestion inside)

Started by Rd27, Wed 26/10/2005 19:08:42

Previous topic - Next topic

Rd27

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.

Candle

If you don't have a walk area he can't move.

Ashen

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.
I know what you're thinking ... Don't think that.

Rd27

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  :(

Elliott Hird

gGuiScriptName.Visible = false;

Ashen

Read the manual. GUI Properties. You'll want .Visible (as Elliott said, and which should still be linked to by GUIOn/Off) and/or possibly .Clickable.
I know what you're thinking ... Don't think that.

Elliott Hird

Suggestion: replace GUIOn and GUIOff functions with gScriptName.On(); and gScriptname.Off();.

edmundito

nah, that wouldn't be consistent with everything else....

SMF spam blocked by CleanTalk