so i have done everything right with the jump script ( groundcheck and everything) but i m running into a subtle issue, if space bar is pressed and never released, my character starts to bunny hop and never stops which seems a bit absurd. i want my character to jump only when jump is pressed once and i cant find any solutions regarding this
So if I understand you correctly then you want your player to only jump ones after you press the space bar not just jump continuously after holding it down so that would imply that one press one jump right if so try this.
Void update ()
{
bool press = false;
If (input.getKeyDown ( keycode.space ) && press == false)
{
// your method of jumping
press = true;
}
If (input.getKeyUp ( keycode.space ) && press == true)
{
press = false;
}
}