public void TakeMovement_Step() { ShapeMover.Move_Custom(this, movementOrder.lMovementOrder[CurrentStep]); CurrentStep++; if (CurrentStep >= TotalMovementSteps) { if (repeatCount > 0) { // Reset if repeatable repeatCount--; CurrentStep = 0; } else if (repeatCount == -44) { // Reset forever CurrentStep = 0; } else { CurrentStep = -1; TotalMovementSteps = -1; movementOrder = null; Has_MovementOrders = false; } } }
public void Move_DownRight() { ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.down_right); }
public void Move_DownLeft() { ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.down_left); }
public void Move_UpRight() { ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.up_right); }
public void Move_UpLeft() { ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.up_left); }
public void Move_Down() { ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.down); }
public void Move_Up() { ShapeMover.Move_Custom(this, ShapeMover.MoveDirections.up); }