sreekanth3.gkm Posted April 18, 2015 Share Posted April 18, 2015 Hai all,im new here..Im developing a small game in phaser...There is a player character,There are 3 different star sprites bouncing around..The player can collect these stars...But i want the player to collect the stars in a specific order...Problem is how to check if the first collected star is the first one in the sequence..I've a method called collectStar() function collectStar (player, star) { // Removes the star from the screen if(){} star.kill(); // Add and update the score score += 10; scoreText.text = 'Score: ' + score;} Link to comment Share on other sites More sharing options...
Recommended Posts