Hallo.
I have an entity on the scene. It has several states. In each state it has different bitmap and is located in different position. This entity is also an item, so actor can "take" it.
Before taking this item i make actor GoToObject.
When i change bitmap and position of this entity i also update WalkToX, WalkToY and WalkToDirection properties. With X&Y everything is ok, but WalkToDirection property does not work, like it seems to me
. It always keeps the value, i gave to it in scene editor.
Here is a little part of code:
var bo4onok = Scene.GetNode( "bo4onok" );
switch( State_09_01_Temnica.bo4onok )
{
case 0:
bo4onok.SetSprite( "scenes\09_Ostronos\01_Temnica\fon\barrel_on_floor.png" );
bo4onok.SkipTo( 702, 434 );
bo4onok.Active = true;
bo4onok.WalkToX = 702;
bo4onok.WalkToY = 519;
bo4onok.WalkToDirection = DI_UPRIGHT;
}
Is it bug or feature ?