I’m trying to learn basic Unity input for 2d stuff that i’ll try later, but when I try to make my sprite jump, it always jumps super inconsistently, like sometimes it will fly off of the game screen and other times it seems like it barely leaves the ground!! I’ve looked at other questions and their answers, but no matter what I try the jump stays inconsistent.
if (Input.GetKeyDown (KeyCode.UpArrow)) {
GetComponent<Rigidbody2D> ().AddForce (new Vector2 (0, 1750), ForceMode2D.Impulse);
}
the code is in the update function