Unit 3 Lesson 17.13 - Score

#1

Can someone figure out why the score is not working here? We’ve been trying to figure this out. Thanks!

#2

From a very quick glance, it looks like you have two separate “if(character.isTouching(coin))” Try putting the code from the second if statement into the first (and getting rid of the second).

This might be wrong, but I believe that when your code gets to the first “if”, it moves the coin, which means when it gets to the second “if”, your character is no longer touching the coin…and thus it never updates score.