Closed kaylale124 closed 5 months ago
Walking through the platform has been fixed
Code Changed:
case "jumpPlatform": // Player is on top of the jump platform if (this.collisionData.touchPoints.this.right) { this.state.movement = { up: false, down: false, left: true, right: false, falling: false}; this.y -= 4; // Player is touching the wall with left side } else if (this.collisionData.touchPoints.this.left) { this.state.movement = { up: false, down: false, left: false, right: true, falling: false}; this.y -= 4; } else if (this.collisionData.touchPoints.this.onTopofPlatform) { this.state.movement = { up: false, down: false, left: true, right: true, falling: false}; this.gravityEnabled = false; }
Walking through the platform has been fixed
Code Changed: