hmmmm.
done everything but its not working. there is no difference between walking and running ... even the velocity is not changing ...
so i changed the x,y coordinates for the runto command to see if this works.
and this is okay if i double left click it walks to the new coordinates and if i left click it walks to the old ones.
there doesnt lie the problem ...
here is my actor script:
method RunTo(x, y)
{
this.WalkAnimName = "run";
this.Velocity = 3;
this.GoTo(x, y);
}
method GoTo(x, y)
{
this.WalkAnimName = "walk";
this.Velocity = 1.5;
this.GoTo(x, y);
}
method RunToObject(name)
{
this.WalkAnimName = "run";
this.Velocity = 3;
this.GoToObject(name);
}
method GoToObject(name)
{
this.WalkAnimName = "walk";
this.Velocity = 1.5;
this.GoToObject(name);
}
and here is the actor definition file:
ACTOR3DX
{
NAME = "test_x"
CAPTION = ""
INTERACTIVE = TRUE
ACTIVE = TRUE
SCRIPT = "D:\Wintermute\Demo_1.0\data\actors\test_x\test_x.script"
SCRIPT= "actors\molly\talk.script"
SCRIPT= "actors\molly\footsteps.script"
SCALE = 11000
;--- velocity
VELOCITY =1.5
ANGULAR_VELOCITY = 400.0
;--- external data
MODEL = "d:\test.X"
FONT = "fonts\nik.font"
;SHADOW_MODEL = "d:\test.X"
SHADOW_TYPE = "stencil"
LIGHT_POSITION { -10, -10, -10 }
SHADOW_COLOR { 0, 0, 0, 208 }
;CURSOR = ...
ANIMATION
{
NAME="idle"
LOOPING=TRUE
}
ANIMATION
{
NAME="walk"
LOOPING=TRUE
}
ANIMATION
{
NAME="run"
LOOPING=TRUE
}
}
and here is the call from the object.script that triggers the actions:
on "LeftClick"
{
actor.GoToObject(this);
}
on "LeftDoubleClick"
{
actor.RunTo(400,400); // did this for seeing if it is working ... normal this would be actor.RunToObject(this);
}
any ideas ?!?
interesting is that the velocity of the walking isnt changing...
and yes there is a running animation defined in the x-file