Movement Code Stops Working After Background Changes by Score

A student has coded this game and I cannot for the life of me figure out why the purple alien (player) stops moving after the score-triggered background change.

Any help is appreciated!!

Thank you in advance!

In the function BGA2 your student is checking if score is higher than or equal to 30. If the score is higher than or equal to 30, the player’s x position will be set to 20. That’s why. Your student is running this every single frame, so its x position will be set to 20 every frame, without letting it move.

Of course!

Thank you so much for your help!