When you ask a question, don’t forget to include a link to the exercise or project you’re dealing with!
If you want to have the best chances of getting a useful answer quickly, make sure you follow our guidelines about how to ask a good question. That way you’ll be helping everyone – helping people to answer your question and helping others who are stuck to find the question and answer!
I was going through the Creating a Fantasy Adventure project and I got an error, one of the options disappeared
// You wrote:
optionBox('pointerup', function() {
const newPage = this.option.nextPage;
if (newPage !== undefined) {
destroyPage();
displaypage(scene, fetchPage(newPage));
}
}, { option });
// Change to:
optionBox.on('pointerup', function() { // This line should have on
const newPage = this.option.nextPage;
if (newPage !== undefined) {
destroyPage();
displayPage(scene, fetchPage(newPage)); // This line should be displayPage
}
}, { option });