AppState variables are persistant?

Well I’m back again! I seem to be having a problem with my AppStates. I currently only have two: a ingame and a inmenu. When the player dies, the ingame state is detached and the inmenu is reattached. When the player selects to start the game again, the ingame object is set to a new instance and attached while the menu is detached. The problem is that the instance variables from the previous ingame instance are persistant even though I assigned a new instance of the state to the variable I attached. Also, the game’s speed seems to increase every time ingame state is attached, making everything run faster. I have no idea what’s going on…

It obviously is the same state being attached, or it is not actually detached and a second one is attached. Run it in the debugger and note the object id (hover over the appState variable), do that for the other instance and see if it is the same. Also check the appstate manager and ensure that the states you want removed are removed.