Thomas Goepfert1,732 Points
I added a lifecounter to the game and it works great, even has 'you lose' text. But after losing the game my character can still move around and collect coins. How do I make the game stop completely? Here is my workspace-https://teamtreehouse.com/workspaces/40804771
KRIS NIKOLAISENPro Student 47,480 Points
There is a player.destroy() method that causes the player to disappear. I added that after the 'you lose' message is updated, along with changing the background color.
Link gives page not found. Can you update the link?
You can place this under both win and lost conditional statements.
player.body.velocity.x = 0;