Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Suggestion - Game.ChangeToLastScene  (Read 4983 times)

0 Members and 1 Guest are viewing this topic.

DREAMWEB

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 48
    • View Profile
Suggestion - Game.ChangeToLastScene
« on: February 25, 2004, 01:51:19 PM »

Hi!

I think, a "ChangeToLastScene" will be great! It is an important thing to create scenes for the "LOOK" on the inventory object; ant then; with that came back to the original scene.
I know that this is possible to do with the windows, but isn
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re:Suggestion - Game.ChangeToLastScene
« Reply #1 on: February 25, 2004, 02:11:41 PM »

Providing your scene's name is the same as it's filename (it is so by default) you can do something like:

Game.ChangeScene("scenes\" + Game.PrevScene + "\" + Game.PrevScene + ".scene");

This code will change to the previous visited scene.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

DREAMWEB

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 48
    • View Profile
Re:Suggestion - Game.ChangeToLastScene
« Reply #2 on: February 25, 2004, 10:40:31 PM »

THANKS!! I will use it! ;D
Logged
 

Page created in 0.042 seconds with 23 queries.