I'm still pretty new at this but I think I'm getting close?
This did solve my issue for the time being. Probably some sort of collision detection would be better. Still new at this but this does get the job done for the time being.
EDIT: let allowJump = true;
put that above addEventListener I'm sure there's a much better way to do this but it worked.
Want to participate?
Create a free Chris Courses account to begin