Hello,
We are trying to implement AppStates to our game. We have a Nifty Title Screen, and a scene based off of TestPostWater.java
We can successfully load the TestPostWater.java AppState from the title screen! Yay! However switching back is quite difficult.
Even the tutorials on AppStates do not help. (https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:appstatesdemo)
They say they are out of date. They compile, however if you toggle between the scenes you will notice the cubes do not detach properly.
What is the correct way to Detach and Attach an AppState? Because nifty things are their own beast, we have plugged in the StartScreenTest.java as our title screen to toggle between that and our water scene. As previously stated we can succesfully switch the initial state from StartScreenState -> TestPostWater. However when going back, we have difficulties. In this instance, the grey background and yellow cube will not load, but what will load is the TextBox.
Thinking about it now I guess the GuiNode is loading successfully, however the rootNode is not.
What are the correct methods to load and detach a state? Thank you.