Fast Foodie Project Help

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! :slight_smile:

So I was doing fine but I hit a bump, my code works but when I add in question number 40 in the screen goes blank and I cant find an error( it was working fine before, customer came up and next one stood in line). WHats the error, did I miss comething becuase it wont let me go foward its bugged
plz help

this is the github to the bugged version,

whats wrong? this version is working fine, I cant find the mistake in the bugged version.

Im really really stuck, worked fine with

gameState.starGroup = this.add.group();,

but

this.drawStars();

and

//Method To Draw Stars

drawStars(){

gameState.starGroup.clear(true);

for (let star = 0; star < gameState.starRating; star++){

  let spacer = star*50

      gameState.starGroup.create( 20 + spacer, 20, 'Star-full').setScale(0.5).setOrigin(0)

}

}

bugged out, but if you put in just this

this.drawStars();

it bug only the guy from coming in to get served


heres the glitch from

this.drawStars();

The error says there is a

Uncaught SyntaxError: unexpected token: ‘{’

GameScene.js:298:11

Uncaught ReferenceError: GameScene is not defined

https://be495f765bf04fc38b7be47bda34f072.cc-propeller.cloud/config.js:15

You have placed drawStars(){ ... outside and below the closing brace of the GameScene class.

works now thanks, needed that

weird now my stars wont appear

Thanks but I found the error