I am having a problem with the scrolling background. It either scrolls by the player if they sit there or the player can out run it. I would like the background to only scroll when the player goes up like in the infinite jumping games.
Is there anyway to make the background do that?
Also, there is a bug that is happening where all the enemies and platforms spawn at the beginning at the top of the first window.
I copied and pasted the code that was used to make the starting platforms to make the enemies and platforms but changed when they appear. That is probably why they spawn at the top together but I am not sure how to fix it.
Any advice is appreciated.