The obstacles are respawning. can anyone see the error?
Good morning! I’ll use rock1 as a way to explain what is happening. Once it leaves the screen, it is repositioned with a y value of -50. Because rock1 never had a yVelocity, it will always stay at y=-50. This is 50 pixels above the screen, so although the x value continues to change due to the velocity, it is moving the way it is expected to move, but above the visual area of the grid.
Same thing with rock2, but to the left of the screen.
Hope that helps!