I need the actor, on "LeftDoubleClick", executing "actor.SkipTo(Scene.MouseX, Scene.MouseY);".
/////in scripts\game.script
on "LeftDoubleClick"
{
Scene.ApplyEvent("LeftDoubleClick");
}
/////in scripts\scene.script
on "LeftDoubleClick"
{
// when the scene is left-clicked, just send the actor to the specified point
actor.SkipTo(Scene.MouseX, Scene.MouseY);
}
on "LeftClick"
{
// when the scene is left-clicked, just send the actor to the specified point
actor.GoTo(Scene.MouseX, Scene.MouseY);
}
But the actor еxecutes action, and then comes back to performance of the previous action.
What can I correct it?