2d rotate sprite when jumping and falling in C#
hey, i'm very new at this so any help is highly appreciated! can't figure out how to rotate my sprite when jumping/landing and return it to normal when grounded... thx in advance
Answer by AMU4u · Feb 23, 2017 at 12:39 AM
You'd have to lerp it, really. If the flipping has to be accurate to where the flip ends when the character is about to land, you will have to lerp your transform.rotate method to include distance from the ground.
The distance from the ground will accelerate or slow down the spinning motion of the transform to best suite visually a landing.
Your answer
Follow this Question
Related Questions
How do I get the current active camera? 2 Answers
Sprites only rotate by 90 degrees 0 Answers
Sprite gets rotated when Joystick Y at 1 or -1? 0 Answers
Image not rendering with script attached 1 Answer
Intersecting sprites 1 Answer