Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: RESET GAME AND RESET OBJECTS  (Read 1939 times)

0 Members and 1 Guest are viewing this topic.

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
RESET GAME AND RESET OBJECTS
« 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??


Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1454
  • Lamp dog!
    • View Profile
Re: RESET GAME AND RESET OBJECTS
« Reply #1 on: March 08, 2005, 03:16:16 PM »

I haven't use it myself but I think Game.Reset() will do what you want.
Logged
fl*p

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
Re: RESET GAME AND RESET OBJECTS
« Reply #2 on: March 08, 2005, 05:19:01 PM »

Thanks but this just resets the variables not the items.


Anyone else done this??
Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re: RESET GAME AND RESET OBJECTS
« Reply #3 on: March 08, 2005, 06:43:47 PM »

Game.Reset() does reset the items as well.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
Re: RESET GAME AND RESET OBJECTS
« Reply #4 on: March 08, 2005, 06:57:50 PM »

Oh ok great stuff many thanks will try this out.
Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS
 

Page created in 0.158 seconds with 18 queries.