How can I selectively update XNA GameComponents?
- by Bill
I have a small 2D game I'm working on in XNA. So far, I have a player-controlled ship that operates on vector thrust and is terribly fun to spin around in circles. I've implemented this as a DrawableGameComponent and registered it with the game using game.Components.Add(this) in the Ship object constructor.
How can I implement features like pausing and a menu system with my current implementation? Is it possible to set certain GameComponents to not update?
Is this something for which I should even be using a DrawableGameComponent? If not, what are more appropriate uses for this?