Activating appstates inside other appstates

Hi,

I want to initiate appstate in another appstate. Is it possible??

It dont work with the super() sytax as appstate extends AbstractAppState and not SimpleApplication…

im not sure why you’d be using super to attach an appstate. the line of code you want is stateManager.attach(new MyAppState()); a good place to put that is in the initialize() method of the “parent” app state.

@simar.i3r said: Hi,

I want to initiate appstate in another appstate. Is it possible??

It dont work with the super() sytax as appstate extends AbstractAppState and not SimpleApplication…

Sure you can. You will of course need references to things like AppStateManager as the other poster mentions.

I start app states from other app states all the time.