moveDown method
Move player to Down
Implementation
@override
bool moveDown(double speed, {bool notifyOnMove = true}) {
if (notifyOnMove) {
if (animation?.runDown != null ||
(animation?.runUp != null && animation?.enabledFlipY == true)) {
animation?.play(SimpleAnimationEnum.runDown);
} else {
if (lastDirectionHorizontal == Direction.left) {
animation?.play(SimpleAnimationEnum.runLeft);
} else {
animation?.play(SimpleAnimationEnum.runRight);
}
}
}
return super.moveDown(speed, notifyOnMove: notifyOnMove);
}