Start screen and app states

Hi guys,

I’m struggling to get my head around the app state tutorials and documentation/ the niffty gui screen switching. Hopefully someone can help me.

Right now I have a class that extends simpleApplication and a main method that instantiates and starts that.
Everything happens in simpleApplication (it’s a simulation so I didn’t need interaction for this part) and it just starts as soon as the applicaiton is opened
Now I’d like to add a start screen, pause/play functionality. I managed to add a start screen GUI but the application is still running in the background.

Any help?

Thanks

Just use appstates.

Enable the simulation state only when you dismiss the start screen…

Or in other words - put all the simulation logic from simple app into the app state instead.

All simple app then does is manage which states are active and attached. The states do all the heavy lifting.