The score does not increase for any player when the ball leaves the screen. In lines 33 & 42 he has two IF conditionals so when the ball’s X position is more than 400 or less than 0 the score should increase. But the score does not increase.
Any ideas?
Thank you in advance!
line 34 … a variable is being declared with var for a 2nd time. It should only be declared once.
I turned on the watchers and the ball position never gets below 0 or above 400, so the score changes are never happening. When I change it to less than 2 or more than 390, I can get it to work.
Lastly, your scores on the screen are not displaying the actual score, but rather just the text “0”, so even when I got the scores to work in the watcher, the display wasn’t changing because it is hard coded to display 0.
Hopefully this gives you some ideas to start with.