Character in Standing-Mode

Started by Digital Mosaic Games, Sun 27/03/2011 22:03:04

Previous topic - Next topic

Digital Mosaic Games

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!

hedgefield

You could try disabling the walkable area he is standing on via the script, something like

if (whatever) {
  RemoveWalkableArea(1);
}

Khris

Another way is to catch walk clicks in on_mouse_click.

Code: ags
// 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(...);


SMF spam blocked by CleanTalk