Hello! I bring good news.
I discovered that there is a function that divides the maximum Tile size by the Speed as described below.
get nbPixelInTile() {
const direction = this.getDirection();
switch (direction) {
case Direction.Down:
case Direction.Up:
return Math.floor(this.mapInstance.tileHeight / this.speed);
case Direction.Left:
case Direction.Right:
return Math.floor(this.mapInstance.tileWidth / this.speed);
default:
return NaN;
}
}
So this variable nbPixelInTile
within the project I'm building is 32/3 (default speed) = 10.66667
causing moveRoutes not to work correctly when I use a customRoute like this: [ Direction.Left, Direction. Left, Direction.Left ]
When I changed the speed to 4, thus leaving the division value = 8. I was able to do the movement correctly. I believe it is necessary to adjust this function OR define that this division must be integer.