Aleksander87

Members
  • Content count

    1
  • Joined

  • Last visited

  1. function collectStar (player, star) { // Removes the star from the screen star.kill(); // Add and update the score score += 10; scoreText.text = 'Score: ' + score; if(score === 120) { WHAT TO DO HERE?? show text gameover and retry button (restart game) } } Hello. I'am newbie in Phaser. I just want to upgrade tutorial game with gameover and try again mode. I create if statement when player reach 120 points and next gameover text appear and retry/restart button. Please give me some advice.