digitaldanny / digitaldanny/detached

Multi-Jumping Stops Jumping

Open
#1 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

**Description**
- Multi-jump sometimes errors out when jumping against the side of a wall.
- Error started after I introduced friction to the physics system.

**Error**
```IndexOutOfRangeException: Index was outside the bounds of the array.```

**Related Code**
```csharp
// Player is always allowed to jump if touching the ground.
// If already in the air, player can only jump if he hasn't met the
// max number of jumps already.
if (this.isGrounded || this.currentNumberJumps < this.maxNumberJumps)
{
Jump(this.jumpPower[currentNumberJumps]);
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.