Uncaught reference error when creating new scenes

I’m new to Phaser 3, and making my first game. I was having no problem adding in scenes, until I tried to add in a scene that I was going to animate to be a cut scene, and now my game doesn’t work, and my console says cutScene is not defined. I don’t think I did this scene any differently to the other scenes. Please can someone tell me what I’m doing wrong? Here is the line code that I’m using to add this scene in, as well as the neighboring code I’m using to add the other scene

 this.scene.add('MainMenu',new MainMenu());
    this.scene.add('cutScene',new cutScene());
    this.scene.add('levelOne',new levelOne());
    this.scene.add('levelTwo',new levelTwo());
    this.scene.add('levelThree',new levelThree());
    this.scene.start('MainMenu');

Your HTML?

I have to leave them out the <>s I don’t just run the code.

html

head
title Pounce /title
script src=“//cdn.jsdelivr.net/npm/phaser@3.11.0/dist/phaser.js” /script
/head

body
script src=“Sox.js” /script
/body

/html

Usually your code editor can find these errors.

Please post Sox.js, I guess.

Sox.js (22.0 KB)

I think cutScene was entangled with another class.

I’ve tried changing the name, but it doesn’t work.

https://phaser.discourse.group/uploads/short-url/fYpQ9fdcdvmjfIdJ62wq1E81hwK.js worked for me.

I checked the code you gave me, and it worked. But I can’t see what exactly is different between it and the original. It was cutScene that I changed the name of, but what was it that you changed?

There was a bracket mismatch. cutScene was inside another class.

Ok, thanks a million.