As the title implies, I’m trying to add a simple pause function in my game that doesn’t affect my background, but I’m not quite sure how to do so.
I know that the simplest way to pause a game is to simply set the framerate to 0. That’s what I did. But is there anyway to keep the background moving even after I pause the game? This is what the background looks like in case you’re interested: http://www.newgrounds.com/dump/item/521fa339c6752bd0f122226116469a9c
I do have an idea for how to fix this but it would be quite excessive at this point in development (but I might end up doing it anyway). Have a global speed variable that every object bases its own speed off of, so when that speed is set to 0, objects don’t move. That could work, but it will require me to go back and fix every object’s speed. Obviously, I’m hoping for a simpler solution.
So, what should I do?