Jump to content
  • Advertisement
Sign in to follow this  
sumarlidason

Scene Control

This topic is 2679 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! huh.gif

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!