I just return out the method if the player’s velocity is zero.
private void FlipPlayer()
{
if (Velocity.IsZeroApprox())
return;
bool isPlayerMovingLeft = Velocity.X < 0;
_sprite3DNode.FlipH = isPlayerMovingLeft;
}
I just return out the method if the player’s velocity is zero.
private void FlipPlayer()
{
if (Velocity.IsZeroApprox())
return;
bool isPlayerMovingLeft = Velocity.X < 0;
_sprite3DNode.FlipH = isPlayerMovingLeft;
}
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.