Score not functioning

My student created this game, but the score does not work.
Can anyone see what may be causing it to not work?
Thank you in advance for any help!

The ball is bouncing off the goal prior to checking to see if it is touching the goal to score a point. I recommend removing the bouncing off the goal code. Also, move the move() function call to be the first line in the if started code. Then do the touch() function

if ( started )
{
move();
touch();
bounce();

}

Thank you so much for your quick response, it works!

1 Like