Sign in to follow this  
rafciok_6

Changing stat in game XNA

Recommended Posts

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    

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this