Hi ive been making a game with phaser and ive set out my game to have each game state a separate java-script and then loads the js file when it needs
game.add.tween(BlackFade).to( {alpha: 1}, 100, "Linear", true )
console.log(BlackFade.alpha)
if (BlackFade.alpha >= 0.9 ){game.state.start('endGame');}
WebSocket connection to 'ws://localhost:8125/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
VM143:870
This is the error i get ^^