Easiest Way To Implement "Slow Motion" and variable game speed in XNA?

Posted by TerryB on Game Development See other posts from Game Development or by TerryB
Published on 2012-03-19T01:03:51Z Indexed on 2012/03/19 2:16 UTC
Read the original article Hit count: 289

Filed under:
|
|

I have an XNA 4.0 game that I want to be able to switch into slow motion and back again to full speed every now and then.

So if you kill an enemy the game switches into slow motion as they explode and then goes back to normal.

What is the easiest way to do this in XNA 4.0 without having to alter all my existing code that relies on GameTime?

I have some code that relies on the TotalGameTime, which will be wrong unless I get XNA to slow down. Is there anyway to avoid refactoring that code?

Thanks!

© Game Development or respective owner

Related posts about XNA

Related posts about physics