I just have an invisible sprite that moves along with the player that acts as a hitbox, but it just doesn't trigger sometimes. Is there a better way to do this?
Develop games in your browser. Powerful, performant & highly capable.
Nevermind, I solved my problem. It was the state system I had, not the collision detection.