Learn Intermediate OOP by Building a Platformer Game - Step 117

Tell us what’s happening:

I am not sure why this is incorrect I have the correct if statement requirements

Your code so far

<!-- file: index.html -->

/* file: styles.css */

/* file: script.js */
// User Editable Region

    }else if (
    player.position.x >= checkpoint.position.x &&
    player.position.x <= checkpoint.position.x + 40
  ) {
    showCheckpointScreen("You reached a checkpoint!");
  

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn Intermediate OOP by Building a Platformer Game - Step 117

it looks like you are missing a }

the closing bracket is already written as part of a previous code I just didn’t include it in the code snippet

no, the closing of the else if is not already present

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.