Sign in to follow this  

Scene Control

This topic is 2344 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Good Afternoon ~ thanks for reading!

I am trying to figure out a variation of a state machine, what i am calling a 'scenemanager'.
[attachment=4955:Untitled.png]


Each scene will have its own state machine. What i need to figure out is the best way to communicate a scene change while trying to avoid singletons and globals.

My thoughts are,
Return value from Update() to signal change. Seems like the anti-KISS.
A message system, instantiated at the top and passed into constructors; and listen for a change. Could also help in the menu state to save menu item changes?
Polling the active scene. Seems like the KISS.

I'm trying to keep the 'scenemanager' flexible and robust. I'd like to be able to "drag-and-drop" a new scene.
Whats going to be my best route here? or am i going about this all wrong?
Any assistance or reading materials would be appreciated..

Thanks again! [img]http://public.gamedev.net/public/style_emoticons/default/huh.gif[/img]

Share this post


Link to post
Share on other sites

This topic is 2344 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this