moveRight method

  1. @override
bool moveRight(
  1. double speed, {
  2. bool notifyOnMove = true,
})
override

Move player to Right

Implementation

@override
bool moveRight(double speed, {bool notifyOnMove = true}) {
  if (notifyOnMove) {
    animation?.play(SimpleAnimationEnum.runRight);
  }
  return super.moveRight(speed, notifyOnMove: notifyOnMove);
}