New answers tagged

0

I see three likely errors, commented below. Try this and edit your question to describe the symptoms if it's still misbehaving. this.hitBottom = function() { var rockbottom = myGameArea.canvas.height - this.height; if (this.y > rockbottom) { this.y = rockbottom; this.gravitySpeed = 0; } } // This curly brace was missing. this....


Top 50 recent answers are included