Search the Community
Showing results for tags 'lose'.
-
Hello! I am making my first ever game and am having trouble getting my character to lose points. In the game, the character can collect two types of bottles. One of them rewards them points, while the other one I want to take away points. However, after doing the codes, my character is still getting points from collecting the wrong bottles (the ones that should take points away) This was the code I am using to take points from the player (it is in the update function) function collectbottle (player, bottle) { // Removes the bottle from the screen bottle.kill(); // Subtract and update the score score -= score -1; scoreText.text = 'score: '-score; } Anyone have tips or ideas of how to fix? Thank you!
-
Hi, i don't know why the loseState doesn't work , i tried a lot of times but the loseState still doesn't work. Please can you help me? Here's the code: http://pastebin.com/FYSKj1fh