I'm making an infinite scroll type game using tiled background. The tiled background goes up when the player is going up and down when player is going down and remains static when the player is not moving. So how can I spawn sprites (not in static way) when either the player is going up or down through the tiled background?