Hi
Is it possible to change Scenes in a StateMachine? I have a game that runs in a StateMachine (TapState, RunState, GameOverState). It works fine.
Know i want to integrate a MainMenu with different buttons. A PlayButton, CreditsButton, ScoreButton. All buttons have to present their own scene in the view.
I tried to put the MainMenu in the StateMachine, but i couldn’t change to another scene (presentScene didn’t work!).
So is it possible at all to change a scene in a GKStateMachine? Or do i have to try a different way?
Thanks for answering.
Best regards
Michael
Solved:
I add a button in the GameOverState and call a touch on the button in the GameScene, and so i change to the MainMenu. It works fine for me:-)