This is the second game im making and when i start the player just flies straight up into space. i know it’s something with the jump but i dont know what. here’s a sample of the code i wrote.
if (grounded && Input.GetKeyDown(KeyCode.Space));
anim.SetBool (“Ground”, false);
GetComponent().AddForce(new Vector2 (0, jumpForce));
Thank you in advance