how to pause UpdateManager without MainGame Loop stop

Oct 17, 2009 at 1:28 PM


I handled all gameobject with UpdateManager. and, I want to create "Pause Button".

then, I tried to this code. in Main application  class.

if (state.KeyboardState.KeyState.F2.OnPressed)
     ApplicationHost.Application.UpdateManager.Enabled = false;
 if (state.KeyboardState.KeyState.F3.OnPressed)
     ApplicationHost.Application.UpdateManager.Enabled = true;
when I pushed F2,  UpdateManager was paused. but MainGame Loop was paused too.
After that, All keyboard Input does not work.
then I tried to create UpdateList with UpdateFlag(bool). and added all GameObject to this class. this class works well. but when Game was paused, ParticleSystem does not paused.
I wish to pause UpdateManager Apart from the main game update routine. or pause to ParticleSystem.
Another good way to do this?
Oct 17, 2009 at 2:06 PM

What you can do is create a second UpdateManager, and add it to the first. Add your game objects to that manager instead. You can then enable/disable it without affecting the main game update.

Oct 17, 2009 at 2:15 PM

oh! It's works very well!.

Actually, I tried to make second  UpdateManager, but it doesn't works. I don't kwow that UpdateManager is IUpdate.

Thank you.