moveDownRight method

  1. @override
bool moveDownRight(
  1. double speedX,
  2. double speedY
)
override

Move player to Down and Right

Implementation

@override
bool moveDownRight(double speedX, double speedY) {
  if (animation?.runDownRight != null) {
    animation?.play(SimpleAnimationEnum.runDownRight);
  } else {
    animation?.play(SimpleAnimationEnum.runRight);
  }
  return super.moveDownRight(speedX, speedY);
}