Hi!
I have a problem using Character.Walk.
What i want is (Lucas-Style), that my character automatically walks to where i clicked. And when he arrived his destination, then he for example says something.
I tried the following:
function on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
{
if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
{
}
else if (button == eMouseLeft)
{
character[MARTY].Walk(mouse.x, mouse.y, eBlock);
ProcessClick(mouse.x,mouse.y, mouse.Mode);
mouse.Mode = 0;
}
}
That works, but in the time he walks i'm unable to give him/her a new command.
There is a option with "eNoBlock" - i thought that would help me - but when i use eNoBlock he doesnt walk anymore.
What did i wrong?
Thanks for your help :-)
I have a problem using Character.Walk.
What i want is (Lucas-Style), that my character automatically walks to where i clicked. And when he arrived his destination, then he for example says something.
I tried the following:
function on_mouse_click(MouseButton button) // called when a mouse button is clicked. button is either LEFT or RIGHT
{
if (IsGamePaused() == 1) // Game is paused, so do nothing (ie. don't allow mouse click)
{
}
else if (button == eMouseLeft)
{
character[MARTY].Walk(mouse.x, mouse.y, eBlock);
ProcessClick(mouse.x,mouse.y, mouse.Mode);
mouse.Mode = 0;
}
}
That works, but in the time he walks i'm unable to give him/her a new command.
There is a option with "eNoBlock" - i thought that would help me - but when i use eNoBlock he doesnt walk anymore.
What did i wrong?
Thanks for your help :-)