I’m not a English speaker…so maybe the problem isn’t expressed well. I would be very grateful if you understand and notify me to correct.
The point of my question is that I think sometimes a gamestate is not totally player-controlled. For example, a gamestate probably consists of a fade-in effect, a 2 seconds’ pause, an object’s move(maybe a book is opened), the main part, another 2 second’s pause and a fade-out effect. Apart from the main part, all other phases take place automatically and in order.
However, if I write all these stages into that gamestate’s update method, it would seem too crowded and unreadable. Yet, if I divide the gamestate into several pieces of smaller gamestate, there would be too many of them.
I know I can use Control classes to encapsulate, for example, the fade-in effect, but I still need relatively complex codes to put several stages in order. (something like creating a class variable to represent which stage is now)
I’m not a very experienced programmer and the jmonkeyengine is something new to me. I don’t know if there’s better way to organise and manage a gamestate. Any ideas on my questions would be highly appreciated.