Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: SBOVIS on March 08, 2005, 12:46:32 PM

Title: RESET GAME AND RESET OBJECTS
Post by: SBOVIS on March 08, 2005, 12:46:32 PM
Hi all,
        I am nearing the sompletion of my demo and I want at the end of the demo on the end scene to:-

1. Reset the game and all global variables

2. Reset the items back to their original positions before the player picked them up




Any ideas on how to achieve this??


Title: Re: RESET GAME AND RESET OBJECTS
Post by: odnorf on March 08, 2005, 03:16:16 PM
I haven't use it myself but I think Game.Reset() will do what you want.
Title: Re: RESET GAME AND RESET OBJECTS
Post by: SBOVIS on March 08, 2005, 05:19:01 PM
Thanks but this just resets the variables not the items.


Anyone else done this??
Title: Re: RESET GAME AND RESET OBJECTS
Post by: Mnemonic on March 08, 2005, 06:43:47 PM
Game.Reset() does reset the items as well.
Title: Re: RESET GAME AND RESET OBJECTS
Post by: SBOVIS on March 08, 2005, 06:57:50 PM
Oh ok great stuff many thanks will try this out.