Question by
patrickpp298 · Nov 30, 2020 at 03:07 PM ·
2d2d game2d sprites2d animation
Sprite facing the wrong way while not moving,Sprite facing the wrong way when not moving 2D
bool flipSprite = (spriteRenderer.flipX ? (move.x > 0.01f) : (move.x < 0.01f)); if (flipSprite) { spriteRenderer.flipX = !spriteRenderer.flipX; }
Comment
Your answer
Follow this Question
Related Questions
Factorio-like sprite directions 0 Answers
Problem with Jump Animation 0 Answers
Help 2D Custom HillClimbRacingGame 0 Answers
Script to animation and movement of 2d player 1 Answer
2d object moves only a little then stops 0 Answers