I have a sprite and I want it to rotate around it’s center 360 deg while moving right when the player presses space. I don’t want it to go rotate directly 360deg but rather do an animation. I tried
void Update() {
if(Input.GetKeyDown(KeyCode.Space))
transform.Rotate(new Vector3.right, 50f * Time.deltaTime ) ;
}
Now I know that 50f may not be enough but I also tried with different numbers and it just rotated the sprite but did not animate it. Also I don’t know how to make it move forward while rotating.