Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Digital Mosaic Games on Sun 27/03/2011 22:03:04

Title: Character in Standing-Mode
Post by: Digital Mosaic Games on Sun 27/03/2011 22:03:04
Hey guys,

Maybe it's really easy for you to solve but I couldn't after many tries.
How is it possible to stick my character on one point so that he can't walkaround anymore although I'm in the walkmode?
I want him just to stay on the place and looking just in one direction all the time.

Thanks!
Title: Re: Character in Standing-Mode
Post by: hedgefield on Sun 27/03/2011 22:36:35
You could try disabling the walkable area he is standing on via the script, something like

if (whatever) {
  RemoveWalkableArea(1);
}
Title: Re: Character in Standing-Mode
Post by: Khris on Sun 27/03/2011 22:44:55
Another way is to catch walk clicks in on_mouse_click.

// on_mouse_click / button == eMouseLeft

    if (mouse.Mode == eModeWalkto && global_variable_set_to_true_to_disable_walking)
      Display("You can't walk right now.");
    else
      ProcessClick(...);