How can i rotate my player?

How can i make my player to rotate every time he jumps like in the imposible game ?

According to your script I’ve created this:

private float JumpForce = 7.5F;

    private Rigidbody2D RigBody;

    private void Start()
    {
        RigBody = this.GetComponent<Rigidbody2D>();
    }

    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            this.StartCoroutine("Jump");
            RigBody.AddForce(new Vector2(0, JumpForce), ForceMode2D.Impulse);
        }
    }

    private IEnumerator Jump()
    {
        float RotAngle = 0;
        while (RotAngle <= 360)
        {
            RotAngle += 5;
            yield return new WaitForEndOfFrame();
            transform.rotation = Quaternion.Euler(new Vector3(0, 0, -RotAngle));
        }
    }

Try to tweak some values and you’ll be g2g :slight_smile: