Changing stat in game XNA

Started by
1 comment, last by rafciok_6 10 years, 11 months ago

Hello

I am working on my 2D game in XNA but I stuck in one point. When I lose all lives in the game Game Over screen appear than I go back to the Main Menu, but when I want to start game again I go back to the point in the game when I lost. My question is maybe you guys know if XNA provide any function which will allows reset everything ( all objects) to the start position. I mean to the position where was created on the beginning.

Thank You for any suggestion

Advertisement

The way I usually do this is call my object constructors when a new game is started. The old objects will be gone and youll have "reset" your objects effectively. Im not sure if this is the most efficient but its easier than making specific reset methods.

That might be good idea. At least I will try to do it.

Thank you

This topic is closed to new replies.

Advertisement