Need help with an error

The if statement doesn’t work with == because as the boy is falling, boy.y isn’t hitting every y value. So for == to work, boy.y would have to be exactly at that y value which is possible, but most likely wouldn’t be. That’s why I’m checking for a range for it to be in.

How can I add background music to my game?