Hello everybody, I would like to know if this is the correct way to proceed.
The character walking with left click but runs with the double left click.
At the moment I just move it without animation.
If in game.script simply I insert the code:
on "LeftDoubleClick"
{
actor.SkipTo (Game.MouseX, Game.MouseY);
}
the character moves to the mouse but immediately after comes back and starts walking because it probably runs on "LeftClick"
If you use:
on "LeftDoubleClick"
{
actor.SkipTo (Game.MouseX, Game.MouseY);
actor.Reset ();
}
the character is not coming back.
Is this the right way to write this code?
Thank you
Valter