We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a098ad4 commit 6c1f505Copy full SHA for 6c1f505
platformerTest.js
@@ -137,7 +137,7 @@ function update() {
137
playerVelY = 0;
138
}
139
// If player is moving upwards and touches the platform
140
- else if (playerVelY < 0) {
+ else if (playerVelY < 0 && platform.y + platform.height - player.x >= 10) {
141
player.y = platform.y + platform.height;
142
143
0 commit comments